restrict admin access to ROLE_ADMIN
This commit is contained in:
parent
eba1194686
commit
1effd26ee9
1 changed files with 2 additions and 1 deletions
|
@ -36,4 +36,5 @@ security:
|
||||||
# Note: Only the *first* access control that matches will be used
|
# Note: Only the *first* access control that matches will be used
|
||||||
access_control:
|
access_control:
|
||||||
# - { path: ^/admin, roles: ROLE_ADMIN }
|
# - { path: ^/admin, roles: ROLE_ADMIN }
|
||||||
|
- { path: ^/admin, roles: ROLE_ADMIN }
|
||||||
- { path: ^(?!/(login|register|reset-password)), roles: ROLE_USER }
|
- { path: ^(?!/(login|register|reset-password)), roles: ROLE_USER }
|
Reference in a new issue