Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a made a role that is able to set roles to other users (staff_admin). This role is NOT able to set other people to staff_admin.
Problem:
When the staff_admin is editing his own account, his role (staff_admin) gets removed.
Comments
Comment #1
salvisI don't quite understand what you're saying.
Please describe with concrete names for users/roles/permissions
-- what you're doing,
-- what you're expecting to happen, and
-- what happens instead.
Comment #2
maulwuff CreditAttribution: maulwuff commentedI have the same issue. But I think it's easier to repro this way:
- The user has the right to assign roles.
- Assign a role to an user which is not in the list of assignable roles.
Go to edit user page, this is shown:
"The user receives the combined permissions of all roles selected here and the following roles: Authentifizierter Benutzer, action_Verwalter."
Then Just hit save.
Afterwards action_Verwalter is removed from the assigned roles for this user (in fact, my self. I have to use another admin user to grant this role to me again)
Comment #3
maulwuff CreditAttribution: maulwuff commentedComment #4
salvisI understand now what you're reporting, thank you.
This is a duplicate of #1954332: Problems with "sticky roles" static cache, which seems to be, unfortunately, a never-ending story...
Please follow up in that other thread.