MDL-58087 mod_assign: Apply overrides in event action callback

Part of MDL-55611 epic.
This commit is contained in:
Cameron Ball 2017-03-22 17:52:15 +08:00 committed by Dan Poltawski
parent b6d9b701f0
commit a82becaa25

View File

@ -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', [