#16184 closed defect (bug) (fixed)
Deleting delete_users capability will hide Plugin Section
Reported by: | Stefan M. | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.0.4 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
If the capability delete_users will be removed from a role, also the Plugin Section will be hided in the admin navigation.
I have made 4 printscreen which documents its very good.
I use the plugin "members" to change the roles.
1 printscreen the setting of the user. no role and user administration is allowed, rest everything.
printscreen 2 shows the hidden plugin section.
printscreen 3 shows the manual access to plugins.php
printscreen 4 shows the code passage which is affecting that problem.
Attachments (5)
Change History (16)
@
13 years ago
The responsible line of code which hides it, but dont know the complete affection of other code parts.
#1
@
13 years ago
- Description modified (diff)
- Summary changed from Deleted Role delete_users will hide Plugin Section to Deleting delete_users capability will hide Plugin Section
delete_users is a capability.
#2
@
13 years ago
- Milestone changed from Awaiting Review to 3.1
- Owner set to nacin
- Status changed from new to accepted
The issue is we're using is_super_admin() when we should simply rely on the cap check provided to the menu item.
Patch attached fixes this in two spots.
#5
follow-up:
↓ 6
@
13 years ago
[17259] appears to have broken the Plugins menu item under Multisite
#7
@
13 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Can't reproduce. The Plugins menu item is hidden and inaccessible in multisite unless you've enabled it in the Network Admin under Settings (bottom of the page). That's proper behavior. This commit shouldn't have changed what you were seeing, either.
Re-opening just to make sure I didn't miss something.
#8
@
13 years ago
Without the change the Plugins menu is visible for a Super Admin regardless of the setting in Network Admin. Now it's hidden for everyone.
Role Setting of the User