New capability for configuring question types.
This commit is contained in:
@@ -80,6 +80,7 @@ $string['permissions'] = 'Permissions';
|
||||
$string['potentialusers'] = '$a potential users';
|
||||
$string['prevent'] = 'Prevent';
|
||||
$string['prohibit'] = 'Prohibit';
|
||||
$string['question:config'] = 'Configure question types';
|
||||
$string['question:export'] = 'Export questions';
|
||||
$string['question:import'] = 'Import questions';
|
||||
$string['question:manage'] = 'Manage questions';
|
||||
|
||||
@@ -829,6 +829,18 @@ $moodle_capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
// Configure the installed question types.
|
||||
'moodle/question:config' => array(
|
||||
|
||||
'riskbitmask' => RISK_CONFIG,
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
'legacy' => array(
|
||||
'admin' => CAP_ALLOW
|
||||
)
|
||||
),
|
||||
|
||||
'moodle/site:doclinks' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
// This is compared against the values stored in the database to determine
|
||||
// whether upgrades should be performed (see lib/db/*.php)
|
||||
|
||||
$version = 2007042701; // YYYYMMDD = date
|
||||
$version = 2007042702; // YYYYMMDD = date
|
||||
// XY = increments within a single day
|
||||
|
||||
$release = '1.9 dev'; // Human-friendly version name
|
||||
|
||||
Reference in New Issue
Block a user