• In PostFactory.php there are these line:
    if ( !current_user_can('publish_posts') ) return;

    This shouldn’t always be the case in my opinion – I have a workflow which enables some users to make drafts (and set other custom statuses) and others who can publish. It would be great if the code could first check the desired status of the post before checking what capabilities apply – and returning the correct error if the check fails. Currently a JS error is created because new_pages returns null from the admin-ajax call, despite a success flag.

    • This topic was modified 2 years, 10 months ago by i4nd90.
    • This topic was modified 2 years, 10 months ago by i4nd90.
  • The topic ‘Improve Capabilities’ is closed to new replies.