New capability for configuring question types.

This commit is contained in:
tjhunt
2007-04-27 10:37:39 +00:00
parent d4bf4b8695
commit 0eb6b04a73
3 changed files with 14 additions and 1 deletions
+1
View File
@@ -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';
+12
View File
@@ -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
View File
@@ -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