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:
+3
-3
@@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user