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

    • MOODLE_37_STABLE
    • MOODLE_37_STABLE
    • MDL-66114-master-2
    • 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

      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.

            marina Marina Glancy
            davidcarrillo David Carrillo
            David Carrillo David Carrillo
            Andrew Lyons Andrew Lyons
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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