Reputation: 981
I do log in the user very well. It is working fine in symfony2. During registration in the DB the role and a state_id are going to be saved.
role: ROLE_USER
state_id: 4 //e.g. has only permissions to do some extra actions
Is there a way in symfony2 in the security.yml that I give permissions to targets with role and state_id?
Upvotes: 1
Views: 25
Reputation: 12306
Better use different roles for this, not a state id. For example: ROLE_USER
, ROLE_USER_4
, etc.
Upvotes: 1