[wp-trac] [WordPress Trac] #41356: permission typo in rest api
WordPress Trac
noreply at wordpress.org
Tue Jul 18 13:26:00 UTC 2017
#41356: permission typo in rest api
----------------------------+-----------------------------
Reporter: lalop | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.8
Severity: normal | Keywords:
Focuses: docs, rest-api |
----------------------------+-----------------------------
I created a new role with delete_users capabilities.
While trying to delete an user via the rest api with this user, I get this
error :
rest_user_cannot_delete
Looking in the code base I found that, the capabilities checked is
delete_user instead of delete_users.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41356>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list