• Resolved iveyb

    (@iveyb)


    Hello, we’re using this plugin to set up a user role that can edit posts/pages/etc but cannot add, delete, or publish them. But for some reason, if I have “publish_posts” unchecked, the user is not able to access wp-admin. “read” is checked, which as far as I’m aware should be the only requirement to access wp-admin, but:

    • if “publish_posts” is unchecked and the user navigates to /wp-admin/, the site redirects them immediately to the site homepage.
    • if I check “publish_posts”, without making any other changes, and then go back to the window where I am logged in as the new user role and navigate to /wp-admin/, I am now able to access /wp-admin/ as usual.

    The trouble is that we don’t want this user to be able to publish posts. How can we ensure they have access to the back end without giving them that permission?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Do you have active WooCommerce at this site?
    If Yes, add new capability ‘view_admin_dashboard’ and grant it to this user role.

    Thread Starter iveyb

    (@iveyb)

    Hi Vladimir,

    No, this website doesn’t have WooCommerce installed at all.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Some other plugin may be involved in this case. Try to deactivate all plugins and test, if user can access wp-admin without publish_posts, activate plugins back one by one and make new tests until user can not access wp-admin again. This way you will can isolate a reason of this problem and check that plugin settings or contact its support.

    Thread Starter iveyb

    (@iveyb)

    We unfortunately aren’t able to do that as it’s on a live site. Is there another way we can check?

    Thread Starter iveyb

    (@iveyb)

    Hi Vladimir,

    We set up a staging site to check and found that we have the Remove Dashboard Access plugin installed to restrict users who aren’t admins. It was doing its job! Thank you for looking into this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘publish_posts required for wp-admin access’ is closed to new replies.