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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -