[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:07:43 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: |
-----------------------------+----------------------------------------------
Changes (by scribu):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
The fact that current_user_can('editor') works at all is just a
coincidence. It wasn't intended to work like that.
You should check for a specific capability instead.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14387#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list