MDL-64063 core_calendar: events by time considers enrolment status.
[moodle.git] / blocks / timeline / amd / src / calendar_events_repository.js
index ace7909..dfe8c47 100644 (file)
@@ -145,6 +145,8 @@ define(['jquery', 'core/ajax', 'core/notification'], function($, Ajax, Notificat
             args.timesortto = args.endtime;
             delete args.endtime;
         }
+        // Don't show events related to courses that the user is suspended in.
+        args.limittononsuspendedevents = true;
 
         var request = {
             methodname: 'core_calendar_get_action_events_by_timesort',