From a82becaa25bab98f45b6c8cb06139abc6456fc9c Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Wed, 22 Mar 2017 17:52:15 +0800 Subject: [PATCH] MDL-58087 mod_assign: Apply overrides in event action callback Part of MDL-55611 epic. --- mod/assign/lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/assign/lib.php b/mod/assign/lib.php index 79023204124..a8b69dcd8ea 100644 --- a/mod/assign/lib.php +++ b/mod/assign/lib.php @@ -1747,6 +1747,9 @@ function mod_assign_core_calendar_provide_event_action(\core_calendar\event $eve $assign = new assign($context, $cm, null); + // Apply overrides. + $assign->update_effective_access($USER->id); + if ($event->eventtype == ASSIGN_EVENT_TYPE_GRADINGDUE) { $name = get_string('grade'); $url = new \moodle_url('/mod/assign/view.php', [