Skip to content

Commit

Permalink
MDL-27550 workshop: students do not see peer-assessment that are not …
Browse files Browse the repository at this point in the history
…graded yet
  • Loading branch information
mudrd8mz committed Aug 2, 2011
1 parent c6b8bbf commit 8981b64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod/workshop/submission.php
Expand Up @@ -323,6 +323,10 @@
// own assessment has been displayed already
continue;
}
if (is_null($assessment->grade) and !has_capability('mod/workshop:viewallassessments', $workshop->context)) {
// students do not see peer-assessment that are not graded yet
continue;
}
$mform = $strategy->get_assessment_form($PAGE->url, 'assessment', $assessment, false);
$options = array(
'showreviewer' => $showreviewer,
Expand Down

0 comments on commit 8981b64

Please sign in to comment.