I am building a web application using Symfony2. I am implementing ACL modules and it worked fine, but came across a problem while trying to create a dashboard for rights management.
So, I got as a user who can create a project and add "participants" to his project. Participants can have three different types of access, which are masks from the creator of masks MASK_VIEW, MASK_EDIT, MASK_OPERATOR. Using ProblematicAclManagerBundle, we can easily add access to them using this:
$this->aclManager->addObjectPermission($project, $mask, $user);
The fact is that when you want to edit a project, you should be able to list users with their current access rights. The function isGrantedcan provide you users for the current user, but not for other users. Compared to addXXXXfunctions where there are three arguments, they have only two protected objects and a mask. Thus, you cannot find the rights for another user with this function. isGranted
Is there a way to get the rights of other users? Or do I need to create my own SQL queries to retrieve data from acl tables?
source
share