mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-58087 mod_assign: Apply overrides in event action callback
Part of MDL-55611 epic.
This commit is contained in:
parent
b6d9b701f0
commit
a82becaa25
@ -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', [
|
||||
|
Loading…
x
Reference in New Issue
Block a user