From 1effd26ee92f54e4a6c0f55e279caca51fe7eb4c Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Fri, 30 Apr 2021 21:24:51 +0200 Subject: [PATCH] restrict admin access to ROLE_ADMIN --- config/packages/security.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 246da82..708406d 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -36,4 +36,5 @@ security: # Note: Only the *first* access control that matches will be used access_control: # - { path: ^/admin, roles: ROLE_ADMIN } - - { path: ^(?!/(login|register|reset-password)), roles: ROLE_USER } + - { path: ^/admin, roles: ROLE_ADMIN } + - { path: ^(?!/(login|register|reset-password)), roles: ROLE_USER } \ No newline at end of file