php - Symfony2 - Security authentication -
- { path: ^/event, roles: is_authenticated_anonymously } - { path: ^/, roles: is_authenticated_anonymously } - { path: ^/, roles: role_member } in security.yml, authenticate /xxx except / , /event, there way so? did above not work. way work add individual pages everytime create one.
- { path: ^/event, roles: is_authenticated_anonymously } - { path: ^/, roles: role_member } i cannot add is_authenticated_anonymously on root in 3rd line because wrong.
you have in access_control:
- { path: ^/event, roles: is_authenticated_anonymously } - { path: ^/$, roles: is_authenticated_anonymously } - { path: ^/, roles: role_member }
Comments
Post a Comment