Role inheritance?
-
Hello,
I have a bit of a pre-purchase question which I would think would be a common problem/feature request with this type of plug-in, but it does not look like it is possible to solve out of the box. I am playing around with the free version right now to see if it will accommodate my needs. If it does, I will get the PRO version.
I have a wholesale site where there are different user tiers. These are assigned by user role. An example:
User Role A -> Has one price, one payment option in the checkout
User Role B -> Has a different price, more payment options in the checkout
User Role C -> And so on.
Now my issue is, that every time a customer (A parent account, representing an entire company with multiple subaccounts) should be upgraded from User Role A to User Role B for example, the subaccounts would have to be upgraded manually from the looks of it.
Is there any way for this plug-in to let subaccounts inherit their user role from the parent account?
Side note (Just FYI): I had a lot of issues getting my user roles to be selectable within your plug-in, they did not appear after addingdefine('SFWC_VALID_ROLE_LOOSE_MODE', true);
to my config file either.
I dug into your code and realized that you check for the presence of the array keys (not the values) ofedit_posts
anddelete_posts
in the user capabilites, yet these are added by default asfalse
, when you use the default wpadd_role
function to add your roles. Just something for you to be aware of perhaps – it might make sense to check for the keys and then additionally if they are false if they are there ??
- You must be logged in to reply to this topic.