Skip to content

[Resolved] Viewing Drafts

Home Forums Press Permit API Viewing Drafts

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by 2 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21759 Reply

    Hi there,

    In the sites sidebar, I currently display a list of child pages for the currently viewed page. I’d like to make it so if an Editor is logged in, they will see drafts as well ( ../?page_id=123&preview=true ).

    I have added a query defined with:

    if(( current_user_can('editor') || current_user_can('administrator') )) $args['post_status'] = array('publish','draft');

    .. but Editors still only see published content (no drafts). If I deactivate Press Permit Pro, the Editor can now see drafts as expected.

    Is there a permission I can set to allow Editors to preview all drafts, but still limit editing to specific categories as already defined?

    Thanks!

    Joe

    #21760 Reply

    [ login required ]

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.