I am using native CDbAuthManager
to implement RBAC in my webapp. How can I get all the users who has permission to do a role? Suppose I have role named updateprofile
. I want to get all the users assigned to that role. I searched the documentation and couldnt find a function.
(I know i can iterate through all user models and do a checkAccess()
in a foreach
loop, but I prefer a nicer solution )