Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Contributors should be able to query for unpublished posts #1892

@danielbachhuber

Description

@danielbachhuber

In the WordPress admin, when I'm logged in as a Contributor, I can see the titles and other metadata of drafts in progress:

image

When I GET /wp/v2/posts status=draft as a contributor, drafts in progress from other authors aren't included in the response because WP_REST_Posts_Controller::check_read_permission() filters them out.

Importantly: Contributors shouldn't be able to see the body content of drafts in progress by other authors — only the metadata expected to be visible in the Manage Posts list table.

Discovered in #1886

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions