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 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 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.