DefaultRoleUpdateService.assignRoles
should have option to ensure direct membership
#435
Labels
DefaultRoleUpdateService.assignRoles
should have option to ensure direct membership
#435
Current impl of
assignRoles()
is a no-op ifuser.hasRole(roleName)
, but thathasRole()
method will return true for roles held by the user due to role inheritance, ie the user does not necessarily have a direct membership in the role.It would be useful to support role-management tasks where we want to ensure a user is explicitly added as a direct member to a role. I would like
hasRole
andassignRoles
to take something like aboolean asDirectMember
flag. Default could remain false (certainly forhasRole
, could discussassignRole
).The text was updated successfully, but these errors were encountered: