[wp-trac] [WordPress Trac] #16297: User admin shouldn't kick in if not multisite

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 2 20:32:36 UTC 2011


#16297: User admin shouldn't kick in if not multisite
---------------------------+---------------------
 Reporter:  nacin          |       Owner:  ryan
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  3.1
Component:  Network Admin  |     Version:  3.1
 Severity:  normal         |  Resolution:  fixed
 Keywords:  dev-feedback   |
---------------------------+---------------------

Comment (by cgrymala):

 I have found one issue with this fix that may confuse users. If a user is
 a "Super Admin" with no explicit role on the "site", they are still
 redirected to the User Admin instead of the Site Admin area, even though a
 Super Admin should (and does) have full permissions on every site within
 the network. For some Super Admin users, this could get really confusing;
 as they click on the "Site Admin" link while in the Network Admin area,
 and get redirected to a page with no options except to update their own
 profiles.

 I think:

 {{{if ( is_multisite() && !get_active_blog_for_user($user->id) )}}}

 should be changed to:

 {{{if ( is_multisite() && !get_active_blog_for_user($user->id) &&
 !is_super_admin() )}}}

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


More information about the wp-trac mailing list