[wp-trac] Re: [WordPress Trac] #2775: Ability for all users to add users of lesser cabable roles

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 18 08:10:15 GMT 2006


#2775: Ability for all users to add users of lesser cabable roles
--------------------------------------------+-------------------------------
 Reporter:  doit-cu                         |        Owner:  doit-cu
     Type:  enhancement                     |       Status:  new    
 Priority:  normal                          |    Milestone:         
Component:  Administration                  |      Version:  2.1    
 Severity:  normal                          |   Resolution:         
 Keywords:  bg|has-patch, bg|needs-testing  |  
--------------------------------------------+-------------------------------
Comment (by ryan):

 Why have a cap of edit_users that is then modified by an action called
 promote?  Just put the action in the cap and call it promote_user.

 {{{
 current_user_can('promote_user', array('user_id' => 1, 'role' =>
 'administrator'));
 }}}

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


More information about the wp-trac mailing list