[wp-trac] [WordPress Trac] #47338: is_super_admin() should check a different capability

WordPress Trac noreply at wordpress.org
Tue May 21 14:07:18 UTC 2019


#47338: is_super_admin() should check a different capability
--------------------------+-----------------------------
 Reporter:  lllor         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.2
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47338>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list