Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 8f485ce28e51d55d7b72baea3ed13893ca2ac8b0 1 parent 73f560c
@rboyatt rboyatt authored marinaglancy committed
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');
}
Please sign in to comment.
Something went wrong with that request. Please try again.