Closed (fixed)
Project:
Role Delegation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2011 at 18:10 UTC
Updated:
22 May 2019 at 07:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Andrew Schulman commentedComment #2
damienmckennaThe D7 code that handles showing the role selector is as follows:
If a user only has the 'administer users' permission they cannot change the roles too. As a result the role_delegation_access code simply shouldn't check for 'administer users' and should rely upon the others.
Comment #3
danweasel commentedI ran across this earlier and found it very jarring from a usability perspective, that Admin users didn't see the page (and even hit an "access denied" page when trying to manually browse to the URL). I know that they don't "need" it per se, since just editing the user will work fine, but it was particularly odd when I added a contextual role-edit link (user/[current-user:uid]/roles) to the user menu and saw it not appear at all for an admin user.
As a quick and dirty personal change, I just edited FALSE to TRUE in the relevant section, but if the proposed patch removes this issue I am definitely in favor of the module not specifically blocking Admin users from access to the Roles tab.
Comment #4
pasqualleplease add a variable "hide role delegation tab if the user can edit users" or something and default to TRUE, so existing sites will not see this change, as using role delegation on the user edit page only is a valid use case also..
yes, administration page for that variable has to be created..
Comment #5
jeroentIt’s been a while since the last comments on this issue. If this is still a problem. Feel free to reopen and provide a patch.
Comment #6
nwom commented#2 does not seem to be committed, so it would perhaps just need a reroll.
Comment #7
nwom commentedComment #8
jeroentAdded test coverage.
Comment #10
jeroentComment #12
jeroentCommitted and pushed to 7.x-1.x. Thanks!
Comment #13
jeroentThere is a separate issue for this: #2858437: user roles showing twice