"Sorry, you can't shop as this customer. They have higher capabilites" after fixing User Role Hierarchy
I'm getting the error Sorry, you can't shop as this customer.
They have higher capabilites so switching would not be secure.
I have custom roles. I added the staff custom role to the hierachy and that added the shop as customer links to the user, so I know that is OK.
However when I click the shop as customer button I get the error above. The user is type 'member' and the heirachy that I have in settings is:
shop_manager | staff | custom_role
so the staff role has higher privileges there and the only permission 'member' has is read, which 'staff' also has