Make compatible with 'Administer users by role' module

Created on 2 May 2024, about 2 months ago
Updated 31 May 2024, about 1 month ago

Problem/Motivation

Right now, in order to see this button, the current user / user role must have the 'administer users' permission.
In our projects, we have 'User administrator' roles who can only create / edit users of certain roles thanks to the 'Administer users by role' module. But right now its not possible to grant them the permission or to let them see this button without given them the god-like 'administer users' permission. We cant allow that permission because user managers must not be able to touch administrator roles in our projects.

So maybe either add a custom permission for this module, and use that (resend_register_mail/resend_register_mail.module line 39), or otherwise: check if administerusersbyrole module is enabled, if so, check if the current logged in user has permission to edit users of the role of the current user edit page, and if so, button should be visible.

Most easy way would be to add extra permission I guess.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium flyke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024