[wp-trac] [WordPress Trac] #43701: Make the "read_private” cap accessible over the REST API
WordPress Trac
noreply at wordpress.org
Tue Dec 11 22:29:40 UTC 2018
#43701: Make the "read_private” cap accessible over the REST API
-------------------------------------------------+-------------------------
Reporter: twoelevenjay | Owner:
| danielbachhuber
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.0
Component: REST API | Version: 4.9.5
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
fixed-5.0 |
-------------------------------------------------+-------------------------
Changes (by desrosj):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"43979" 43979]:
{{{
#!CommitTicketReference repository="" revision="43979"
REST API: Enable users with read_private_posts to query for them.
An authorized request with the read_private_posts capability for a post
type should be able to GET /wp/v2/posts for posts of status=private. This
query is further sanity-checked by
WP_REST_Posts_Controller->check_read_permission(), which is unchanged.
Props rachelbaker, soulseekah, twoelevenjay.
Moves [43694] from the 5.0 branch to trunk.
Fixes #43701.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43701#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list