Le 07/02/2011 18:42, phil0 a écrit :
Hello there

How does the Symfony 2 ACL and roles interact?

I've given my users a number of ACL entries to work with. However, I would like ROLE_ADMIN to have all permissions, without needing to add ACL entries for each admin user for each object.

How is this done?

You can add ACL entries for a role:
    $sid = new RoleSecurityIdentity(ROLE_ADMIN);
    $acl->insertClassAce($sid, MaskBuilder::MASK_OWNER);

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to