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

    • Bug
    • Resolution: Fixed
    • Major
    • 3.4
    • 3.4
    • Calendar
    • MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-59973-master
    • 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).

    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

        1. calendar1.png
          22 kB
          Sara Arjona (@sarjona)
        2. calendar2.png
          21 kB
          Sara Arjona (@sarjona)

        Issue Links

          Activity

            People

              damyon Damyon Wiese
              dobedobedoh Andrew Lyons
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              David Monllaó David Monllaó
              Simey Lameze Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/Nov/17