Public Ticket #2730319

User Role "Shop manager"

Closed
Comments
2 Tickets 4
Daniel started the conversation 6 years ago on March 24, 2021 at 10:47am

The Shop Manager role can only be used to manage users who have only the Customer role. B2B groups are also added as roles. Thus, the user with the role "Shop Manager" can no longer manage the users, even the B2B settings under the user.

I have the plugin "ADMIN MENU EDITOR PRO", but also with that I can not find out how to give the shop manager the rights. Is the problem known? Does the shop operator necessarily have admin rights?

2,762
KingsPlugins replied 6 years ago on March 26, 2021 at 9:19am

Hi Daniel,

I tested in my local site ( WP 5.7, WooCommerce 5.1 ) and I am not seeing this issue.


I have logged in with a user that has Shop Manager capability, and for example I can edit a B2B user with 2 roles (customer role + b2bking vip group role) without issues:

1639076174.png

I can change the user's group as well as edit regular WooCommerce data.



I am not quite sure what could be the issue in your site. Are you running a multisite? that might complicate things.


Kind regards,

Stefan


2 Tickets 4
Daniel replied 6 years ago on March 26, 2021 at 2:59pm

I tried again. Logged in with Shop Manager, and a customer switched the group (in user management), nothing else.

5853080898.png

After that I get an error message that I don't have permission to view the page and in the user administration I can no longer edit it because the no longer "only" has the role customer.

9899456938.png

This is apparently a "normal" behavior of WordPress/Woocommerce that the "Shop Manager" can only edit such users who "only" have the role of customer.
But why is this being changed? That has to come from B2B King or am I doing something wrong?

Daniel


2,762
KingsPlugins replied 6 years ago on March 27, 2021 at 1:33pm

Hi,

I'm not quite sure what's going on. We have many customers who use Shop Managers to manage users and the shop, and I have not seen this issue before. It also does not make sense to me that they would only be able to edit users with a single role.


With shop manager, I can click "Edit" as you see in the screenshot below, no matter how many roles the user has (below user has 3 roles but can be edited without issues)2945305406.png


I would suggest you try to disable all plugins except B2BKing and WooCommerce - perhaps it is a conflict of some kind - some other plugin introduces this behaviour.


If you can't figure this out, can you share a temporary admin-level login to your site with us? I am happy to look into it as well and try to identify what's causing this.


Kind regards,

Stefan

2 Tickets 4
Daniel replied 6 years ago on March 31, 2021 at 8:16am

Hi,

The shop manager can only edit Customer role is apparently normal, look at the link. Does B2B King write the groups/roles in the whitelist?

https://wordpress.org/support/topic/shop-manager-unable-to-edit-delete-users-with-certain-roles/

https://developer.woocommerce.com/2018/10/11/woocommerce-3-4-6-security-fix-release-notes/

"With this release, Shop Managers can only edit users with the Customer role by default, and there is a whitelist of roles that Shop Managers can edit."

I'm not sure what I need to do so that the shop manager role can also handle the roles of B2B King.

2 Tickets 4
Daniel replied 5 years ago on April 12, 2021 at 6:50am

Hi,

Thank you for your support. I found the error. I use the plugin "Admin Menu Editor Pro", which is responsible for the malfunction. I had to set the "Shop Manager" role to leave unchanged under the Editable roles option.

2

Sign In