MDL-8498 Assignment - Notification of feedback e-mails to students not being sent
This commit is contained in:
@@ -1772,7 +1772,7 @@ function assignment_cron () {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!has_capability('moodle/course:view', get_context_instance(CONTEXT_COURSE, $submission->course))) {
|
||||
if (!has_capability('moodle/course:view', get_context_instance(CONTEXT_COURSE, $submission->course), $user->id)) {
|
||||
echo fullname($user)." not an active participant in $course->shortname\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user