Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66002

The capability category:viewcourselist affects guest access to courses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      Repro Steps

      1. Login as an admin and set the capability "category:viewcourselist" to "Not set" for all the roles.
      2. Enable the guest access enrolment plugin.
      3. Choose a course and enable guest access to it via the "Enrolment methods" screen in the course administration area.
      4. Verify in the course settings that the course is visible.
      5. Login as a non-admin user which is not enrolled in the relevant course.
      6. Try to access the course

       

      Expected Results

      The course can't be accessed and a message says that the course is not open for students.

      Actual Results

      The course should be open to non-enrolled users, since guest access is active.

      Problem

      The capability category:viewcourselist affects the guest access to a course, even it should not, in my opinion. Sorry for the lame metaphor, but the fact that I don't want someone to see the entire route to a place, doesn't mean that I wouldn't want to give him the option to get there blindfolded

      We don't want our users (student and teachers) to see regular courses that they are not enrolled in, but we still want to let them access support courses that are supposed to be open for all the users in the system.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m