[wp-trac] Re: [WordPress Trac] #5540: User roles overhaul

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 28 06:06:44 GMT 2007


#5540: User roles overhaul
-------------------------+--------------------------------------------------
 Reporter:  tellyworth   |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.5      
Component:  General      |      Version:           
 Severity:  normal       |   Resolution:           
 Keywords:  has-patch    |  
-------------------------+--------------------------------------------------
Comment (by tellyworth):

 A simple implementation of get_users_with_cap() is attached.  It doesn't
 cope with per-user capabilities, but there's a trivial way to implement
 that: drop per-user caps in favour of multiple roles.

 i.e. if I want a particular Contributor user to have an addition
 upload_files capability, I create a new Uploader role with the required
 cap, then assign both roles (Contributor, Uploader) to that user.  The
 code here can already handle this.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5540#comment:13>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list