[wp-trac] [WordPress Trac] #19684: Users list 'Change role to' allows for changing logged-in Admin role to Subscriber

WordPress Trac wp-trac at lists.automattic.com
Sat Dec 31 17:55:03 UTC 2011


#19684: Users list 'Change role to' allows for changing logged-in Admin role to
Subscriber
------------------------------+--------------------
 Reporter:  raamdev           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.3.1
Component:  Users             |     Version:  3.3
 Severity:  major             |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by nacin):

 Replying to [comment:9 scribu]:
 > Replying to [comment:6 nacin]:
 > > In [19640]:
 > > {{{
 > > #!CommitTicketReference repository="" revision="19640"
 > > Only allow _multisite_ super admins to demote themselves on a site.
 ...
 > > }}}
 >
 > I was under the impression that "super admin" is ''exclusively'' a
 multisite feature.

 It is, but is_super_admin() returns true in single-site for administrators
 (it checks delete_users). We found this to be useful during the merge.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19684#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list