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

The capability category:viewcourselist affects guest access to courses

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not a bug
    • 3.7
    • None
    • Course
    • None
    • 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 Actual Results

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

      Actual Expected 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

              Unassigned Unassigned
              AcquaAlta Acqua Alta
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              10 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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