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.

Post statuses should not use is_user_logged_in() #2157

@joehoyle

Description

@joehoyle

Currently in get_items() in the post type controller uses is_user_logged_in to determine if non-public status should show, however this is not a good indicator of privilege. We should use some cap check instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions