Permalink
Browse files

MDL-39050 quiz access rules: $module->is_enabled() not available for 23

  • Loading branch information...
1 parent cf473c2 commit 42f64a01c7d97fa06cf22cfeda08c6ac3f7fc004 @damyon damyon committed Apr 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/quiz/settings.php
View
@@ -236,7 +236,7 @@
// Add settings pages for the quiz access rule subplugins.
foreach ($rulesbyname as $strrulename => $rule) {
$settings = new admin_settingpage('modsettingsquizcat' . $rule,
- $strrulename, 'moodle/site:config', $module->is_enabled() === false);
+ $strrulename, 'moodle/site:config', !$module->visible);
if ($ADMIN->fulltree) {
include($CFG->dirroot . "/mod/quiz/accessrule/$rule/settings.php");
}

0 comments on commit 42f64a0

Please sign in to comment.