[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 16:08:46 UTC 2010


#14387: current_user_can returns false for roles "higher" than built-ins
-----------------------------+----------------------------------------------
 Reporter:  sbressler        |        Owner:         
     Type:  defect (bug)     |       Status:  closed 
 Priority:  normal           |    Milestone:         
Component:  Role/Capability  |      Version:         
 Severity:  normal           |   Resolution:  invalid
 Keywords:                   |  
-----------------------------+----------------------------------------------

Comment(by scribu):

 > I need to avoid just assuming current_user_can('edit_posts') to do this
 check.

 Then you're doing something wrong.

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


More information about the wp-trac mailing list