WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
  • This topic has 4 replies, 2 voices, and was last updated 7 years, 6 months ago by Syam Mohan.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 7, 2017 at 12:56 am #59550
    Bea Bialek
    Spectator

    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 #59582
    Syam Mohan
    Keymaster

    Hi Bea,

    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?

    Thanks

    Syam

    November 7, 2017 at 7:14 pm #59583
    Bea Bialek
    Spectator

    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
    Bea Bialek
    Spectator

    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)
    enroll_users
    // All Admin LD Assignment custom capabilities
    read_assignment
    edit_assignment
    edit_assignments
    edit_others_assignments
    publish_assignments
    read_assignment
    read_private_assignments
    delete_assignment
    edit_published_assignments
    delete_others_assignments
    delete_published_assignments

    // All Admin LD Quiz Essay custom capabilities
    edit_essays
    edit_others_essays
    publish_essays
    read_essays
    read_private_essays
    delete_essays
    edit_published_essays
    delete_others_essays
    delete_published_essays

    // All Admin LD Quiz custom capabilities
    wpProQuiz_show
    wpProQuiz_add_quiz
    wpProQuiz_edit_quiz
    wpProQuiz_delete_quiz
    wpProQuiz_show_statistics
    wpProQuiz_reset_statistics
    wpProQuiz_import
    wpProQuiz_export
    wpProQuiz_change_settings
    wpProQuiz_toplist_edit
    wpProQuiz_toplist_edit
    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 #59632
    Syam Mohan
    Keymaster

    Hi Bea,

    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?

    Thanks

    Syam

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘User Roles-Multiple roles’ is closed to new replies.
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions