• Hi,

    I installed User Role Editor. I am pleased with it for now and would recommend it but I do have some questions. I installed a woocommerce site for someone but don’t want to give full admin permisions. Instead I made her as build-in role ‘Shop manager’ and start testing by enable/disable some permissions. The goal is to let her just manage the woocommerce store and nothing else. In User Editor Role I had to enable ‘Edit Posts’ to give her the ability to add new coupons. By doing that she now sees more than planned in the menu on the left site of wordpress.
    In attachment I uploaded 4 images that I like for her not to see. Does anyone can help me with that?

    I would be a very happy person if someone could help me fixing this!

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

    (@shinephp)

    Hi,

    This is happened be cause of WooCommerce places ‘Coupons’ menu item under its own custom menu, instead of allow it to be the separate custom post type menu, e.g. it does for the ‘Products’. But when you click ‘Add new’ button it tries to call post-new.php?post_type=shop_coupon, which is not linked to any admin menu item. For this reason WordPress denies access to the page, while real permissions required are ‘edit_shop_coupons’, etc., not ‘edit_posts’.

    ‘edit_posts’ allows access to the ‘Posts->Add New’ menu item with link post-new.php, which WordPress tries to check in this case. So you can not revoke ‘edit_posts’ if you need to leave ability to add new coupons.

    Workaround is to hide unneeded admin menu items using other tools, not via user permissions. You may use for this User Role Editor Pro -> Admin menu access add-on, or Admin Menu Editor.

Viewing 1 replies (of 1 total)
  • The topic ‘User Role Editor’ is closed to new replies.