MDL-36369 qtypes and qbehaviour settings permissions.

The correct policy is that users with moodle/question:config can set the
default settings for particular qtypes. However, it requires
moodle/site:config in order to do manage qbehaviours or manage qtypes.
This commit is contained in:
Tim Hunt
2012-11-13 16:07:28 +00:00
parent e75324a53e
commit 837e181225
2 changed files with 7 additions and 5 deletions
+3 -3
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'), 'moodle/question:config');
new moodle_url('/admin/qbehaviours.php'));
}
/**
@@ -5299,8 +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",
'moodle/question:config');
parent::__construct('manageqtypes', get_string('manageqtypes', 'admin'),
new moodle_url('/admin/qtypes.php'));
}
/**