Basically, do like this:
- compute the set of permissions "allowable" (permissions which include the one 
you need to check)
- list users with these permissions
For the step 1 you can either do your own code, if you are on pre 5.2 
SNAMPSHOT, or use CoreSession#getPermissionsToCheck(String permission), if your 
cloned Nuxeo code allows you. This method was made available publicly recently. 
To do you own code, either do your own logic, or use SecurityService (be aware, 
this service is not included in core API).
For step 2 use 
documentModel.getACP().listUsernamesForAnyPermission(permissions).

HTH, Radu
--
Posted by "rdarlea" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2413#6552>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to