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

Admin user cannot create course or group events without enrolment in that course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide

      Make sure you have at least 3 courses on your site.

      Enrol your admin user in one course (any role).

      Enable the admin setting calendar_admincanseeall

      Go to the calendar.

      Verify the admin can see events from all courses, or choose any specific course.

      Verify the admin can create an event in any course.

      Disable the admin setting calendar_admincanseeall

      Verify the admin is only shown events from the course they are enrolled in.

      Verify the list of courses the admin can filter by only contains the course they are enrolled in + All courses.

      Verify from the site calendar, the admin can choose to create an event in any course calendar (by changing the course in the new event modal).

      Go to a specific course the admin is NOT enrolled in.

      Go to the course calendar.

      Verify you can see events for this course, and the course appears in the list of courses the admin can filter the calendar by. Note that after selecting a different course from the filter, the filter will only show courses that the admin user is enrolled in + All courses.

      Verify you can create a new event in any course calendar from this course calendar (by changing the course in the new event modal).

      Show
      Make sure you have at least 3 courses on your site. Enrol your admin user in one course (any role). Enable the admin setting calendar_admincanseeall Go to the calendar. Verify the admin can see events from all courses, or choose any specific course. Verify the admin can create an event in any course. Disable the admin setting calendar_admincanseeall Verify the admin is only shown events from the course they are enrolled in. Verify the list of courses the admin can filter by only contains the course they are enrolled in + All courses. Verify from the site calendar, the admin can choose to create an event in any course calendar (by changing the course in the new event modal). Go to a specific course the admin is NOT enrolled in. Go to the course calendar. Verify you can see events for this course, and the course appears in the list of courses the admin can filter the calendar by. Note that after selecting a different course from the filter, the filter will only show courses that the admin user is enrolled in + All courses. Verify you can create a new event in any course calendar from this course calendar (by changing the course in the new event modal).
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59973-master

      Description

      It is no longer possible for an admin user to create a course or group event in a course, unless they themselves are enrolled in that course.
      This is a change of behaviour from 3.3.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17