[wp-trac] Re: [WordPress Trac] #2531: Functions for registering additional capabilities and getting a list of all capabilities

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 25 23:45:41 GMT 2006


#2531: Functions for registering additional capabilities and getting a list of all
capabilities
----------------------------+-----------------------------------------------
       Id:  2531            |      Status:  new                     
Component:  Administration  |    Modified:  Tue Apr 25 23:45:41 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  anonymous       |    Reporter:  markjaquith             
----------------------------+-----------------------------------------------
Comment (by ryan):

 Caps should move out of usermeta.  usermeta is a global table but caps are
 a per-blog resource.  Using the tables I mentioned follows the rule that
 you store something only once, but we don't have to be strictly by the
 book.  Busting caps out of the array will definitely help.  Keep in mind
 also that with roles we have a level of indirection.  One can't directly
 query if the user has the "edit_users" cap since the user has only the
 "administrator" role/cap.  You have to look up the role to get at the
 caps.  Using the extra tables makes this easier.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2531>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list