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

moodle/category:viewcourselist behaves incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 3.8.4, 3.9.1
    • Enrolments
    • None
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • MDL-69374-master_guest_category_viewcourselist
    • Hide
      1. Login as Admin.
      2. Create a Course.
      3. In the Course, go to Course administration > Users > Enrolment methods.
        • Enable 'Guest access'
      4. Edit the Guest role in Site administration > Users > Define roles.
        1. Disable the 'moodle/category:viewcourselist' for the Guest role.
        2. Save changes
      5. Logout.
      6. Login as Guest.
      7. Go to Home
        1. confirm you can see the Course in the "Available courses" list.
        2. confirm you can successfully access the Course.
      Show
      Login as Admin. Create a Course. In the Course, go to Course administration > Users > Enrolment methods. Enable 'Guest access' Edit the Guest role in Site administration > Users > Define roles. Disable the 'moodle/category:viewcourselist' for the Guest role. Save changes Logout. Login as Guest. Go to Home confirm you can see the Course in the "Available courses" list. confirm you can successfully access the Course.

      By default the guest role has moodle/category:viewcourselist enabled, so every guest user can access all course categories on the whole website. The purpose of moodle/category:viewcourselist is to restrict this access.

      On our Moodle site we did not want guest users to access all coursecategories - we only want to allow access to certain courses. Therefore we disabled this capability for the guest user.

      When a guest user now opens a course that has guest access enabled the user only gets an error message: "This course is currently unavailable to students". As soon as we enable this capability for guests again, we have access to the course.

      ------------------------

      It seems not very logical to me that the capability "moodle/category:viewcourselist" overules the guest-enrol feature of courses.

      Therefore I would consider this as a bug.

       

       

            vtos Vitaly Potenko
            rschrenk Robert Schrenk
            Mihail Geshoski Mihail Geshoski
            Adrian Greeve Adrian Greeve
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 41 minutes
                1d 41m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.