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.
Hi Im trying to disable the tab all together from the users profile.
The reason is this:
Im using the module with permissions for the user to choose their own role.
I can go to other users profiles and edit their role - Regardless of if Im logged in as administrator or authenticated user - Not good!
Maybe you could add an extra permission to only change the role if it's your role?
Or
An option to toggle the tab on/off?
For now I will settle for just being able to hide/get rid of it - Any help or advice with this would be great.
Many thanks
Comments
Comment #1
Andrew Schulman CreditAttribution: Andrew Schulman commentedComment #2
Pasqualleto hide the tab you can implement hook_menu_alter():
to hide the tab for other users:
Comment #3
PasqualleI guess we can create two types of permissions: "assign x role to anybody", "self assign x role", but I am not sure how useful would that be in general..
Comment #4
Taxoman CreditAttribution: Taxoman commented#3: those would be useful. +1
Comment #5
JeroenTIt’s been a while since the last comments in this issue. If this is still a problem feel free to reopen and provide patches.