[wp-trac] [WordPress Trac] #43701: Make the "read_private” cap accessible over the REST API
WordPress Trac
noreply at wordpress.org
Wed Aug 29 02:11:24 UTC 2018
#43701: Make the "read_private” cap accessible over the REST API
---------------------------------------------+-----------------------
Reporter: twoelevenjay | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: REST API | Version: 4.9.5
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses: rest-api
---------------------------------------------+-----------------------
Changes (by rachelbaker):
* keywords: has-patch has-unit-tests => has-patch has-unit-tests commit
Comment:
[attachment:"43701.2.diff"] is a refresh of @soulseekah's earlier patch.
It limits allowing users with the `edit_private_posts` to viewing only
'private' posts.
If possible, I would like to get another set of eyes since this is dealing
with user capabilities. I did add more tests though so I am feeling fairly
good about this as is.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43701#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list