Skip to content

Commit e58efe4

Browse files
Chad Meyerswouterj
Chad Meyers
authored andcommitted
Update security.rst
1 parent 35b812c commit e58efe4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

security.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,9 @@ URL pattern. You saw this earlier, where anything matching the regular expressio
715715
# require ROLE_ADMIN for /admin*
716716
- { path: '^/admin', roles: ROLE_ADMIN }
717717
718+
# or require ROLE_ADMIN and IS_AUTHENTICATED_FULLY for /admin*
719+
- { path: '^/admin', roles: [IS_AUTHENTICATED_FULLY, ROLE_ADMIN] }
720+
718721
# the 'path' value can be any valid regular expression
719722
# (this one will match URLs like /api/post/7298 and /api/comment/528491)
720723
- { path: ^/api/(post|comment)/\d+$, roles: ROLE_USER }

0 commit comments

Comments
 (0)