[wp-trac] [WordPress Trac] #12109: map_meta_cap doesnt work for multisite superadmins

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 1 15:39:52 UTC 2010


#12109: map_meta_cap doesnt work for multisite superadmins
-----------------------------+----------------------------------------------
 Reporter:  dd32             |       Owner:           
     Type:  defect (bug)     |      Status:  new      
 Priority:  normal           |   Milestone:  3.0      
Component:  Role/Capability  |     Version:           
 Severity:  normal           |    Keywords:  multisite
-----------------------------+----------------------------------------------

Comment(by wpmuguru):

 Replying to [ticket:12109 dd32]:
 >
 > However, Thats not always the case, Take the 'create_users' value for
 example, It'll exist for super admin. you see, Theres a slight issue in
 that map_meta_cap is never run for Multisite super admins, super admins
 have ALL caps, even 'cap_doesnt_exist'
 >
 > IMO, this is something that should probably be removed, super admins
 should only have caps if their role has the cap. I believe this is
 currently a work around due to the lack of a "Super admin" role as such.
 >

 Caps are stored by blog/site not by network (i.e. caps can be changed on
 individual blogs). Therefore, the super admin role does not rely on those
 caps. As it applies to this instance, the super admin would have to be
 added as an admin on every site/blog to maintain the super admin role.

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


More information about the wp-trac mailing list