Permalink
Browse files

Fixing MDL-39710: setting to limit student access to rubric now checked.

  • Loading branch information...
1 parent bf2bee1 commit 74d4a8e314b789db596f5f3364fbaee7aff3aa67 @rboyatt rboyatt committed with marinaglancy May 29, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 grade/grading/form/rubric/lib.php
@@ -519,7 +519,8 @@ public function render_preview(moodle_page $page) {
if (has_capability('moodle/grade:managegradingforms', $page->context)) {
$rubric .= $output->display_rubric_mapping_explained($this->get_min_max_score());
$rubric .= $output->display_rubric($criteria, $options, self::DISPLAY_PREVIEW, 'rubric');
- } else {
+ // ensure we don't display unless show rubric option enabled
+ } else if ( !empty($options['alwaysshowdefinition']) ) {
$rubric .= $output->display_rubric($criteria, $options, self::DISPLAY_PREVIEW_GRADED, 'rubric');
}

0 comments on commit 74d4a8e

Please sign in to comment.