Opened 5 years ago
Last modified 4 years ago
#47338 new defect (bug)
is_super_admin() should check a different capability
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Role/Capability | Keywords: | needs-patch |
Focuses: | multisite | Cc: |
Description
Currently is_super_admin() returns true in case the user has the delete_users cap (in case of a single site).
Since admins may want to delegate users managemente capability, IMHO a more appropriate capability to check is 'activate_plugins' or, better, check more than a single capability.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Related: #37616