Skip to content

Commit 9ee9720

Browse files
authored
Update doc comment when requiring several roles
1 parent a4cc2bb commit 9ee9720

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
@@ -442,7 +442,7 @@ start with ``/admin``, you can:
442442
# require ROLE_ADMIN for /admin*
443443
- { path: '^/admin', roles: ROLE_ADMIN }
444444
445-
# or require ROLE_ADMIN or IS_AUTHENTICATED_FULLY for /admin*
445+
# or require multiple roles for /admin* (when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager)
446446
- { path: '^/admin', roles: [IS_AUTHENTICATED_FULLY, ROLE_ADMIN] }
447447
448448
# the 'path' value can be any valid regular expression
@@ -469,7 +469,7 @@ start with ``/admin``, you can:
469469
<!-- require ROLE_ADMIN for /admin* -->
470470
<rule path="^/admin" role="ROLE_ADMIN"/>
471471
472-
<!-- require ROLE_ADMIN or IS_AUTHENTICATED_FULLY for /admin* -->
472+
<!-- require multiple roles for /admin* (when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager) -->
473473
<rule path="^/admin">
474474
<role>ROLE_ADMIN</role>
475475
<role>IS_AUTHENTICATED_FULLY</role>
@@ -497,7 +497,7 @@ start with ``/admin``, you can:
497497
// require ROLE_ADMIN for /admin*
498498
['path' => '^/admin', 'roles' => 'ROLE_ADMIN'],
499499
500-
// require ROLE_ADMIN or IS_AUTHENTICATED_FULLY for /admin*
500+
// require multiple roles for /admin* (when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager)
501501
['path' => '^/admin', 'roles' => ['ROLE_ADMIN', 'IS_AUTHENTICATED_FULLY']],
502502
503503
// the 'path' value can be any valid regular expression

0 commit comments

Comments
 (0)