MDL-36369 Question types and behaviour settings should not require moodle/site:config

This commit is contained in:
Marina Glancy
2012-11-13 15:14:03 +00:00
committed by Tim Hunt
parent 5c4685f0ad
commit e75324a53e
2 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -5252,7 +5252,7 @@ class admin_page_manageqbehaviours extends admin_externalpage {
public function __construct() {
global $CFG;
parent::__construct('manageqbehaviours', get_string('manageqbehaviours', 'admin'),
new moodle_url('/admin/qbehaviours.php'));
new moodle_url('/admin/qbehaviours.php'), 'moodle/question:config');
}
/**
@@ -5299,7 +5299,8 @@ class admin_page_manageqtypes extends admin_externalpage {
*/
public function __construct() {
global $CFG;
parent::__construct('manageqtypes', get_string('manageqtypes', 'admin'), "$CFG->wwwroot/$CFG->admin/qtypes.php");
parent::__construct('manageqtypes', get_string('manageqtypes', 'admin'), "$CFG->wwwroot/$CFG->admin/qtypes.php",
'moodle/question:config');
}
/**