[wp-trac] Re: [WordPress Trac] #10201: Switch roles to use single role, and no user-specific caps

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 26 13:47:27 GMT 2009


#10201: Switch roles to use single role, and no user-specific caps
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  Denis-de-Bernardy
     Type:  enhancement        |      Status:  accepted         
 Priority:  normal             |   Milestone:  2.9              
Component:  Role/Capability    |     Version:  2.8              
 Severity:  normal             |    Keywords:  2nd-opinion      
-------------------------------+--------------------------------------------

Comment(by hakre):

 Thanks Denis for the info, I really appreciate it. Caps bound to Roles is
 good. Storage I would completely ignore in the design-phase. So +1 one for
 abstraction, it can be improved later on, like ryan suggested.

 The modell then is: User -> Role -> Caps.

 What should the code actually do to verify if a request is valid? Querie
 Caps or Roles? My answer is Caps. Roles are not to queried any longer.
 Role only exist to manage Capabilities of a User.

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


More information about the wp-trac mailing list