From 9fac9e66070ab96caa42dcdf008f77804e5be86f Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Sun, 9 May 2021 17:52:08 +0200 Subject: [PATCH] allow homepage for all users --- 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 708406d..a5909ce 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -36,5 +36,6 @@ security: # Note: Only the *first* access control that matches will be used access_control: # - { path: ^/admin, roles: ROLE_ADMIN } + - { path: ^/$, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/admin, roles: ROLE_ADMIN } - - { path: ^(?!/(login|register|reset-password)), roles: ROLE_USER } \ No newline at end of file + - { path: ^(?!/(login|register|reset-password|offers)), roles: ROLE_USER } \ No newline at end of file