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

User calendar events are not displayed if user does not have capability to browse course list

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course and a user, enrol user in a course
      2. As admin, create calendar events in any course category, and also in this course
      3. Login as this user
      4. Create a user event
      5. Make sure you can see course and user events
      6. Login as admin and assign role Manager to this user in system context
      7. Login as user
      8. Make sure you can see all three events
      9. Login as admin and remove capability moodle/category:viewcourselist from the "Authenticated user" role, also remove Manager role from the user
      10. Login as the user again
      11. Make sure you can see course and user event but not category event
      Show
      Create a course and a user, enrol user in a course As admin, create calendar events in any course category, and also in this course Login as this user Create a user event Make sure you can see course and user events Login as admin and assign role Manager to this user in system context Login as user Make sure you can see all three events Login as admin and remove capability moodle/category:viewcourselist from the "Authenticated user" role, also remove Manager role from the user Login as the user again Make sure you can see course and user event but not category event
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull 3.7 Branch:
      MDL-66114-37-2
    • Pull Master Branch:
      MDL-66114-master-2

      Description

      User calendar events are not displayed if user does not have capability to browse course list (moodle/category:viewcourselist).

      To reproduce it just remove this capability from the 'Authenticated users' role and it will stop showing the calendar events.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 21 minutes
                  2h 21m