MDL-15420 fixed wrong show submission to others test; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-08-28 07:23:05 +00:00
parent 10f19c4925
commit 1160eb5af2

View file

@ -2512,7 +2512,7 @@ function assignment_print_recent_activity($course, $viewfullnames, $timestart) {
continue; continue;
} }
// the act of sumitting of assignemnt may be considered private - only graders will see it if specified // the act of sumbitting of assignment may be considered private - only graders will see it if specified
if (empty($CFG->assignment_showrecentsubmissions)) { if (empty($CFG->assignment_showrecentsubmissions)) {
if (!array_key_exists($cm->id, $grader)) { if (!array_key_exists($cm->id, $grader)) {
$grader[$cm->id] = has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_MODULE, $cm->id)); $grader[$cm->id] = has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_MODULE, $cm->id));
@ -2631,9 +2631,8 @@ function assignment_get_recent_mod_activity(&$activities, &$index, $timestart, $
$show[] = $submission; $show[] = $submission;
continue; continue;
} }
// the act of submitting of assignment may be considered private - only graders will see it if specified
// the act of sumitting of assignemnt may be considered private - only graders will see it if specified if (empty($CFG->assignment_showrecentsubmissions)) {
if (!empty($CFG->assignment_showrecentsubmissions)) {
if (!$grader) { if (!$grader) {
continue; continue;
} }