[wp-trac] [WordPress Trac] #16528: delete_users cap should distinguish roles

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 10 21:44:34 UTC 2011


#16528: delete_users cap should distinguish roles
-----------------------------+------------------------------
 Reporter:  linuxologos      |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  3.0
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by linuxologos):

 Replying to [comment:2 scribu]:
 > The problem with this idea is that it assumes that roles are
 hierarchical.
 Yes, you are totally right. It's just edit_users that opens this area...
 > I'm not sure how 'edit_users' distinguishes based on roles. Can't see
 anything in map_meta_cap().
 Me neither. I *think* it was introduced in 3.0, but I'm not sure at all.

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


More information about the wp-trac mailing list