We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0815017 commit 9617742Copy full SHA for 9617742
security.rst
@@ -438,6 +438,9 @@ start with ``/admin``, you can:
438
# require ROLE_ADMIN for /admin*
439
- { path: '^/admin', roles: ROLE_ADMIN }
440
441
+ # or require ROLE_ADMIN and IS_AUTHENTICATED_FULLY for /admin*
442
+ - { path: '^/admin', roles: [IS_AUTHENTICATED_FULLY, ROLE_ADMIN] }
443
+
444
# the 'path' value can be any valid regular expression
445
# (this one will match URLs like /api/post/7298 and /api/comment/528491)
446
- { path: ^/api/(post|comment)/\d+$, roles: ROLE_USER }
0 commit comments