I'm using FosUserBundle for my Symfony2 project. I've added a rule for the custom ROLE_VALIDE to restrict the paths like /user. It works for the users having this role.
The problem is that I also want the admins to be able to access this path.
I've tested with both roles ROLE_ADMIN and ROLE_ADMIN + ROLE_VALIDE but I have the 403 error page.
Is there a way to add more than one role in the access_control ?
access_control:
- { path: ^/admin, role: ROLE_ADMIN }
- { path: ^/user, role: ROLE_VALIDE }