At the moment, it's only possible to assign a role to a user if you have permission to edit that user.

However it's easy to imagine scenarios where we might want a sub-admin who can assign roles but not edit users. For example a moderator might have access to grant roles like "trusted", "expert" to users who have consistently made intelligent comments in a forum. In this case the sub-admin can use actions to assign roles.

Allow access if:
1a) The sub-admin can edit the user OR
1b) The sub-admin can assign all the roles the user already has AND
2) The sub-admin can assign all the roles that are being changed

A second benefit of this change is that it reduces the likelihood of cases where the sub-admin assigns a role to a user then no longer has permission to remove that same role.

CommentFileSizeAuthor
#4 assign-without-edit.3080891-4.patch2.05 KBadamps

Comments

AdamPS created an issue. See original summary.

adamps’s picture

Issue summary: View changes
adamps’s picture

adamps’s picture

Status: Active » Needs review
StatusFileSize
new2.05 KB

  • AdamPS committed fbb0987 on 8.x-3.x
    Issue #3080891 by AdamPS: Don't require edit permission to assign role
    
adamps’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.