Skip to content

Commit a3838c7

Browse files
committed
Update doc comment when requiring several roles
1 parent 2402aef commit a3838c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ start with ``/admin``, you can:
513513
# require ROLE_ADMIN for /admin*
514514
- { path: '^/admin', roles: ROLE_ADMIN }
515515
516-
# or require ROLE_ADMIN or IS_AUTHENTICATED_FULLY for /admin*
516+
# or require multiple roles for /admin* (when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager)
517517
- { path: '^/admin', roles: [IS_AUTHENTICATED_FULLY, ROLE_ADMIN] }
518518
519519
# the 'path' value can be any valid regular expression
@@ -540,7 +540,7 @@ start with ``/admin``, you can:
540540
<!-- require ROLE_ADMIN for /admin* -->
541541
<rule path="^/admin" role="ROLE_ADMIN"/>
542542
543-
<!-- require ROLE_ADMIN or IS_AUTHENTICATED_FULLY for /admin* -->
543+
<!-- require multiple roles for /admin* (when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager) -->
544544
<rule path="^/admin">
545545
<role>ROLE_ADMIN</role>
546546
<role>IS_AUTHENTICATED_FULLY</role>
@@ -568,7 +568,7 @@ start with ``/admin``, you can:
568568
// require ROLE_ADMIN for /admin*
569569
['path' => '^/admin', 'roles' => 'ROLE_ADMIN'],
570570
571-
// require ROLE_ADMIN or IS_AUTHENTICATED_FULLY for /admin*
571+
// require multiple roles for /admin* (when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager)
572572
['path' => '^/admin', 'roles' => ['ROLE_ADMIN', 'IS_AUTHENTICATED_FULLY']],
573573
574574
// the 'path' value can be any valid regular expression

0 commit comments

Comments
 (0)