[v2.0] support onlyAssigned option for method getUsersInRole #177
Labels
enhancement
good first issue
This is an easy issue that beginners can tackle to get to know the code base.
help wanted
Use case
In my model,
'project.member'
is a sub-role of'project.manager
'. If I want a list of all project members that are not managers, AFAIK I cannot yet. Well yes, I can filter the output ofgetUsersInRole
but that's not convenient.Solution
The method
getRolesForUser
already support this option :So basically, the idea is to filter users which
role
param has anassigned:true
field, perhaps usingRoles._onlyAssignedMatcher
method.The text was updated successfully, but these errors were encountered: