• Resolved dailce

    (@dailce)


    Is this fully compatible with woocommerce?

    Also, in regards to switching. Is it possible to limit which accounts a user can switch too? ie run a check when you try to switch?

    For instance, I want to allow shop managers to be able to switch to a customers account. On my site each user/customer has a special field I added to the user details page “Account Number”…. not sure… can you say something like:

    If allowed to swtich user accounts AND user account your switching to has account X, then allow the switch.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    As long as you’re running WooCommerce 3.6 or higher, yes it’s fully compatible.

    Regarding restricting the ability to switch users, a user has the ability to switch to a user if they have the ability to edit that user, so that’s what you need to control really. You can try a plugin such as Members which gives you fine grained control over such capabilities.

    I tried enabling the “edit_users” permission using “User Role Editor” for “Shop Manager” role, however this did not allow that user role to switch users.

    I then tried adding the new permission “switch_users” for “Shop Manager” and that seemed to work.

    So is there another permission other than “edit_users” that needs to be enabled for switching users to work?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce roles?’ is closed to new replies.