@@ -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 }
@@ -462,6 +465,12 @@ start with ``/admin``, you can:
462465 <!-- require ROLE_ADMIN for /admin* -->
463466 <rule path =" ^/admin" role =" ROLE_ADMIN" />
464467
468+ <!-- require ROLE_ADMIN and IS_AUTHENTICATED_FULLY for /admin* -->
469+ <rule path =" ^/admin" >
470+ <role >ROLE_ADMIN</role >
471+ <role >IS_AUTHENTICATED_FULLY</role >
472+ </rule >
473+
465474 <!-- the 'path' value can be any valid regular expression
466475 (this one will match URLs like /api/post/7298 and /api/comment/528491) -->
467476 <rule path =" ^/api/(post|comment)/\d+$" role =" ROLE_USER" />
@@ -484,6 +493,9 @@ start with ``/admin``, you can:
484493 // require ROLE_ADMIN for /admin*
485494 ['path' => '^/admin', 'roles' => 'ROLE_ADMIN'],
486495
496+ // require ROLE_ADMIN and IS_AUTHENTICATED_FULLY for /admin*
497+ ['path' => '^/admin', 'roles' => ['ROLE_ADMIN', 'IS_AUTHENTICATED_FULLY']],
498+
487499 // the 'path' value can be any valid regular expression
488500 // (this one will match URLs like /api/post/7298 and /api/comment/528491)
489501 ['path' => '^/api/(post|comment)/\d+$', 'roles' => 'ROLE_USER'],
0 commit comments