• Resolved alvesgabrieel

    (@alvesgabrieel)


    Basically, I want certain courses not to appear for specific roles. In other words, if I create a course for users with the “IT Collaborator” role, I want only those users to see these courses. Users with the “Customer Service Collaborator” role should not be able to see these courses, only those filtered for this type of custom role.

    PS: When I say the user should not see the course, it’s not just about the content already configured, but actually not having access to the lessons, and if possible, not even seeing the course on the course page.

    Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Omar ElHawary

    (@omarelhawary)

    Hi @alvesgabrieel,

    Thanks for reaching out Members Support Team!

    You should limit access for course from Content Premission section as shown in this screenshot. Please let me know if I miss something here.

    Regards,

    Thread Starter alvesgabrieel

    (@alvesgabrieel)

    In my case, this doesn’t work because the sections of the pages don’t define any content. I am using the MS LMS plugin and the Members plugin. In this case, all content is managed by the MS LMS plugin, which has two sections (courses and lessons). In these two sections, there is an option to restrict by roles, as shown in the screenshot you provided. However, if I restrict in the “courses” section, it only hides the course description that appears on the course’s main page. If I restrict in the “lessons” section, it only hides the text-based lessons, but most of the lessons will be videos, and no video is hidden. I want to hide the “video lessons.”

    Plugin Support Omar ElHawary

    (@omarelhawary)

    Hi @alvesgabrieel,

    In your case, looks like MS LMS plugin is generate content outside of the_content() function. So, you will need to use a shortcode to protect content as in the example below:

    [members_access role="subscriber"]
    Hide this content from everyone but editors.
    [/members_access]

    Also, you can use PHP as descibed in this article.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.