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

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 15 07:54:32 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 has-patch dev-feedback
-----------------------------+----------------------------------------------
Changes (by dd32):

  * keywords:  multisite => multisite has-patch dev-feedback


Comment:

 > attachment 12109.diff  added
  * Runs map_meta_cap() for ALL users.
  * In the event that a super admin is the current user, Returns true for
 all caps, Unless specifically denied by map_meta_cap.
   * Untested in a multi-site/multi-user MS environment, but see no reason
 why it wouldnt work

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


More information about the wp-trac mailing list