Browse files

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

  • Loading branch information...
1 parent f36066f commit 8df87c160fedf1fd20fc6bc8fe036a8a59accc94 @rboyatt rboyatt committed with marinaglancy May 29, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 grade/grading/form/rubric/lib.php
View
3 grade/grading/form/rubric/lib.php
@@ -520,7 +520,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 8df87c1

Please sign in to comment.