Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3838c7

Browse files
committed
Update doc comment when requiring several roles
1 parent2402aef commita3838c7

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 requireROLE_ADMIN or IS_AUTHENTICATED_FULLYfor /admin*
516+
# or requiremultiple rolesfor /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
<rulepath="^/admin"role="ROLE_ADMIN"/>
542542
543-
<!-- requireROLE_ADMIN or IS_AUTHENTICATED_FULLYfor /admin*-->
543+
<!-- requiremultiple rolesfor /admin* (when defining multiple roles, the behavior depends on the strategy used in Access Decission Manager)-->
544544
<rulepath="^/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-
// requireROLE_ADMIN or IS_AUTHENTICATED_FULLYfor /admin*
571+
// requiremultiple rolesfor /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)

[8]ページ先頭

©2009-2025 Movatter.jp