mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-15420 fixed wrong show submission to others test; merged from MOODLE_19_STABLE
This commit is contained in:
parent
10f19c4925
commit
1160eb5af2
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue