• Resolved loafintree

    (@loafintree)


    We have a multisite installation and we’ve created a role of “Shop Manager” that has edit_users capability, but when logged in as this role, we only see “Remove” under users in the dashboard, even for roles with a lesser level. We’ve checked the database and it appears correct. (Carriage returns added for clarity)

    s:12:"shop_manager";a:2:{s:4:"name";s:12:"Shop manager";s:12:"capabilities";a:64:{s:7:"level_9";b:1;s:7:"level_8";b:1;s:7:"level_7";b:1;s:7:"level_6";b:1;s:7:"level_5";b:1;s:7:"level_4";b:1;s:7:"level_3";b:1;s:7:"level_2";b:1;s:7:"level_1";
    b:1;s:7:"level_0";b:1;s:12:"read_product";b:1;s:18:"manage_woocommerce";b:1;s:24:"view_woocommerce_reports";b:1;s:12:"edit_product";b:1;s:14:"delete_product";
    b:1;s:13:"edit_products";b:1;s:20:"edit_others_products";b:1;s:21:"read_private_products";b:1;s:15:"delete_products";b:1;s:23:"delete_private_products";
    b:1;s:25:"delete_published_products";b:1;s:22:"delete_others_products";b:1;s:21:"edit_private_products";b:1;s:23:"edit_published_products";b:1;s:20:"manage_product_terms";
    b:1;s:18:"edit_product_terms";b:1;s:20:"delete_product_terms";b:1;s:20:"assign_product_terms";b:1;s:15:"edit_shop_order";b:1;s:15:"read_shop_order";
    b:1;s:17:"delete_shop_order";b:1;s:16:"edit_shop_orders";b:1;s:23:"edit_others_shop_orders";b:1;s:19:"publish_shop_orders";b:1;s:24:"read_private_shop_orders";
    b:1;s:18:"delete_shop_orders";b:1;s:26:"delete_private_shop_orders";b:1;s:28:"delete_published_shop_orders";b:1;s:25:"delete_others_shop_orders";
    b:1;s:24:"edit_private_shop_orders";b:1;s:26:"edit_published_shop_orders";b:1;s:23:"manage_shop_order_terms";b:1;s:21:"edit_shop_order_terms";
    b:1;s:23:"delete_shop_order_terms";b:1;s:23:"assign_shop_order_terms";b:1;s:16:"edit_shop_coupon";b:1;s:16:"read_shop_coupon";b:1;s:18:"delete_shop_coupon";b:1;
    s:17:"edit_shop_coupons";b:1;s:24:"edit_others_shop_coupons";b:1;s:20:"publish_shop_coupons";b:1;s:25:"read_private_shop_coupons";b:1;s:19:"delete_shop_coupons";
    b:1;s:27:"delete_private_shop_coupons";b:1;s:29:"delete_published_shop_coupons";b:1;s:26:"delete_others_shop_coupons";b:1;s:25:"edit_private_shop_coupons";
    b:1;s:27:"edit_published_shop_coupons";b:1;s:24:"manage_shop_coupon_terms";b:1;s:22:"edit_shop_coupon_terms";b:1;s:24:"delete_shop_coupon_terms";
    b:1;s:24:"assign_shop_coupon_terms";b:1;s:16:"publish_products";b:1;s:10:"edit_users";b:1;}}

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @loafintree

    Could you please send me the screenshots of your role settings from Role Editor so that I can try to replicate this issue?

    Best

    Thread Starter loafintree

    (@loafintree)

    Thanks for your reply.

    Plugin Author Caseproof

    (@caseproof)

    I tested a custom role with the same capabilities under Users tab. I also selected Read capability under Posts and Pages and set role position to 30. The “role position” feature allows you to set members of a particular role to be able to edit users with roles “lower” or “lower or equal” to their role. For example, you could set Shop Manager to be able to edit roles lower than Shop Manager. To use it, navigate to Members > Roles section, select Shop Manager Role and set Role Position meta box to 30 or higher? If you don’t see Role Position box, activate “Members – Role Hierarchy” Add-on under Members > Settings > Add-Ons tab.

    When I switched to the user with this role, I could edit users with the same and lower role position: https://share.cspf.co/NQuW4AmW

    I hope that helps.

    Thread Starter loafintree

    (@loafintree)

    I’ve already tried that but same results as before.

    Plugin Author Caseproof

    (@caseproof)

    Could you clone Subscriber role, set position to 30 and set up the same Users’ capabilities as they were in my screenshot? Then, add a new user with this new role and see if they can edit users with Customer. If it works, then there might be some capability in Shop Manager that blocks editing users.

    Best

    Thread Starter loafintree

    (@loafintree)

    I tried cloning Subscriber and it glitched on me. I couldn’t access the admin at all, and it apparently logged out and reverted to my Super Admin as logged in. I tried again by cloning the Editor. It was the same results as originally. No edit capability. I have the plugin network activated. Maybe it shouldn’t be? If I deactivate ‘network activated’ and activate per site, will I lose any of the roles? Or are they set in the database? I can’t afford to have roles not working while testing. Thanks for your continued help.

    Plugin Author Caseproof

    (@caseproof)

    Instead of cloning would you just create a new role with the same capabilities plus the ones from Users tab and see if that helps?

    Roles are saved in the database in the wp_options table in the wp_user_roles, so if you activate it per site, data should be still there.

    Best

    Thread Starter loafintree

    (@loafintree)

    I’ve tried everything. It seems that no one but administrators can edit users.

    Plugin Author Caseproof

    (@caseproof)

    I tried to replicate this issue so I installed WooCommerce, and then double-checked that I have the same Users capabilities as they are in your screenshot. I could only see the list of users. Next, I changed role position to 30 (Subscriber role’s position is 20), and I could edit all users with Subscriber role. I cannot duplicate this issue. Please deactivate all your plugins temporarily except Members to see if this resolves the problem. If this works, re-activate all plugins one by one to see which one causes that issue. You can also switch the current theme to the default WordPress theme temporarily and see if this helps.

    I hope that helps.

    Thread Starter loafintree

    (@loafintree)

    It is impossible to deactivate plugins, as this is a live multisite with 80+ active e-commerce stores. What I found is that multisite does not allow any roles other than Super Admin to edit users.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cannot edit users’ is closed to new replies.