Access Issues to courses

Created on 4 July 2025, 27 days ago

Managing Access to Courses and Classes

I created 3 courses and added myself and another user as member to all 3. I configured the access rights in the group roles of the course. I did not do anything in classes nor did I create a class (I presume this is for online tutoring?)
I logged in as member of the course and could only see one of the 3 courses on the login page. When I clicked on the course to start it, an error message popped up: access denied.

I logged in as an LMS admin and content creator. All 3 courses were on the front page. I checked which members the course had and the user-member mentioned afore was listed.
I tried to add a member to a course on the front page but was only given a class to select from, not a course.

Issue 1: authorized user with membership rights to course cannot access the course (permissions under group role granted!)
Issue 2: I cannot select a course to add a member, only a class

I presume "students" are class participants/ members are course participants

🐛 Bug report
Status

Active

Version

1.0

Component

Courses and lessons

Created by

🇬🇧United Kingdom buzzbee

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @buzzbee
  • 🇨🇦Canada ob3ron Canada

    @buzzbee did you use the quickstart setup from https://github.com/graber-1/drupal_lms_ddev ? The group settings and relationships have to be set in a very specific way to work correctly.

    Students need to be in classes for course access. When a student clicks on the 'Enroll' button, they are automatically added to the class associated with the course. If you want to manually add students, use the Students tab on a course, for example: /group/1/students -- that will give them the necessary group membership and permissions to view and take the course.

    Also make sure your User 1 admin account has the LMS Admin role if you're using that to set up courses, otherwise you'll get some unexpected results.

  • 🇬🇧United Kingdom buzzbee

    Thank you very much for your reply. Our site just crashed trying to update from 1.07 to 1.08. Therefore, I cannot check your suggestions until we can fix it (help appreciated - see reported bug). However, I am not sure how you actually associate a course with a class?

    In Opigno, a class is used for live-classes. Eventually, an LMS needs to incorporate a mixture of live-lectures and online lessons. This might not be an immediate requirement but should be part of the overall design.

  • 🇨🇦Canada ob3ron Canada

    I apologize for the late reply, I've been in a meditation retreat this week. And I'm very sorry for your update issues -- you're an early pioneer with Drupal LMS, you're at the start of something great and there are probably going to be some teething issues along the way, but still, it shouldn't happen and I feel bad for the extra work you've had to do.

    Due to your failed update, there was a necessary setting that didn't get changed. If you go to /admin/group/types/manage/lms_course/display you should see an entry for the start_link component. That needs to be changed from "Plain text" to "LMS Component". That should resolve your Enroll button issue.

    You can certainly change the name of Classes, see the draft documentation at https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib...

    We've had some debate about the way classes are named, if you'd like to chime in on the discussion, please feel free to comment on this issue: https://www.drupal.org/project/lms/issues/3525100 📌 UI/UX Improvements Active

Production build 0.71.5 2024