November 7, 2017 at 12:56 am #59550
I have the problem with multiple roles. When my customer buys something via woocommerce shop, they got a customer role. Now when my customer buys a group access, they also get a role Group leader “group_leader” so they have 2 roles.
I assigned widgets based on the group leader role, but these widgets are not displayed on the page because the primary role is a customer.
I don’t know what capabilities I need to give to a group leader role to dominate the customer role.
By the way, when I assign only 1 role (Group Leader) everything works but it requires attention to every order and creates a delay for customers.
I’d like to create an environment when a customer with 2 roles (group leader and customer) gets everything that is related to a group leader.
Please advise.November 7, 2017 at 6:59 pm #59582Syam MohanKeymaster
I’m not sure I understand the issue. So you have a widget which is enabled for Group Leader but not for Customer. And it is not visible for a user who has both the roles, but you want it to be visible. Is this your issue? If possible can you share a screen shot of your widget permission?
SyamNovember 7, 2017 at 7:14 pm #59583
That’s exactly my problem. Where do I find a widget (it’s frontpage navigation menu) permission?November 7, 2017 at 7:22 pm #59584
I think the group leader capabilities comes from the Learndash Plugin. Here is what LearDash says about user capabilities:
Below are the LearnDash user capabilities, which you can assign to other WordPress user roles (or custom roles) when using a plugin like User Role Editor.
group_leader ( both a role capability and user role)
// All Admin LD Assignment custom capabilities
// All Admin LD Quiz Essay custom capabilities
// All Admin LD Quiz custom capabilities
WordPress standard capabilities are also used. For example:
Access to the Users > All Users listing is controlled by WordPress. The user must have the ‘list_users’ capability.
When editing a user’s profile (not their own) the current user must have the ‘edit_users’ capabilities in order to see certain admin-level items like the ability to manually complete course steps or add a user to a group etc.
Access to the various LeandDash LMS sub-menus. For the custom post type like course, lesson, topic and quiz are set when the custom post type is registered. For example for courses the WP capabilities are mapped to the extended custom post type capabilities
read_course -> read_post
publish_courses -> publish_posts
edit_courses -> edit_posts
Can you help me with it?November 8, 2017 at 9:42 pm #59632Syam MohanKeymaster
I’m quoting a statement from your initial post here.
“I assigned widgets based on the group leader role, but these widgets are not displayed on the page because the primary role is a customer.”
How did you assign the widgets against the Group Leader role?
- The topic ‘User Roles-Multiple roles’ is closed to new replies.