Skip to content

Commit

Permalink
MDL-55415 course: Set default options to false for frontpage
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Sep 7, 2016
1 parent 7ceab0d commit 247bdcc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions course/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4174,6 +4174,14 @@ function course_get_user_administration_options($course, $context) {
}
}
$options->grades = $grades;
} else {
// Set default options to false.
$listofoptions = array('tags', 'gradebook', 'outcomes', 'badges', 'import', 'publish', 'reset', 'roles', 'grades');

foreach ($listofoptions as $option) {
$options->$option = false;
}
}

return $options;
}

0 comments on commit 247bdcc

Please sign in to comment.