MDL-36369 Non-admin managers could not access list of plugins
authorMarina Glancy <marina@moodle.com>
Mon, 5 Nov 2012 04:31:19 +0000 (12:31 +0800)
committerMarina Glancy <marina@moodle.com>
Mon, 5 Nov 2012 04:31:19 +0000 (12:31 +0800)
admin/settings/plugins.php

index 29d0665..bdfd1fd 100644 (file)
@@ -295,6 +295,8 @@ if ($hassiteconfig) {
 // Question type settings
 if ($hassiteconfig || has_capability('moodle/question:config', $systemcontext)) {
     // Question behaviour settings.
+    require_once("$CFG->libdir/pluginlib.php");
+    $allplugins = plugin_manager::instance()->get_plugins();
     $ADMIN->add('modules', new admin_category('qbehavioursettings', new lang_string('questionbehaviours', 'admin')));
     $ADMIN->add('qbehavioursettings', new admin_page_manageqbehaviours());