Skip to content

Commit 9617742

Browse files
author
Chad Meyers
authored
Update security.rst
1 parent 0815017 commit 9617742

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

security.rst

+3
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@ start with ``/admin``, you can:
438438
# require ROLE_ADMIN for /admin*
439439
- { path: '^/admin', roles: ROLE_ADMIN }
440440
441+
# or require ROLE_ADMIN and IS_AUTHENTICATED_FULLY for /admin*
442+
- { path: '^/admin', roles: [IS_AUTHENTICATED_FULLY, ROLE_ADMIN] }
443+
441444
# the 'path' value can be any valid regular expression
442445
# (this one will match URLs like /api/post/7298 and /api/comment/528491)
443446
- { path: ^/api/(post|comment)/\d+$, roles: ROLE_USER }

0 commit comments

Comments
 (0)