]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8498 Assignment - Notification of feedback e-mails to students not being sent...
authorskodak <skodak>
Tue, 13 Feb 2007 08:43:17 +0000 (08:43 +0000)
committerskodak <skodak>
Tue, 13 Feb 2007 08:43:17 +0000 (08:43 +0000)
mod/assignment/lib.php

index 4847405e2011c96ad4990878742d19065ed585e4..0176b3629796b1cc7c87af53fc6c3d800b626f22 100644 (file)
@@ -1782,7 +1782,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;
             }