Permalink
Browse files

MDL-27550 workshop: students do not see peer-assessment that are not …

…graded yet
  • Loading branch information...
1 parent c6b8bbf commit 8981b64a41a6c0b78e4be781fcf199eea01c0c38 @mudrd8mz mudrd8mz committed Jul 28, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/workshop/submission.php
@@ -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,

0 comments on commit 8981b64

Please sign in to comment.