[wp-trac] [WordPress Trac] #14387: current_user_can returns false for roles "higher" than built-ins

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 22 15:28:00 UTC 2010


#14387: current_user_can returns false for roles "higher" than built-ins
-----------------------------+----------------------------------------------
 Reporter:  sbressler        |       Owner:                 
     Type:  defect (bug)     |      Status:  new            
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:                 
 Severity:  normal           |    Keywords:                 
-----------------------------+----------------------------------------------
 Maybe this isn't a bug and is intentional, but current_user_can('editor')
 fails for admins. current_user_can('contributor') fails for editor. And so
 on. Now, for some even stranger reason, it succeeds on one production blog
 of mine (all higher roles "can" a lower role). That is the functionality I
 want and that makes sense to me for the built-ins. Is that what should
 happen? If so, then this is a bug, and if not my apologies.

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


More information about the wp-trac mailing list