From 0eb6b04a7352f693ac37f627fcc3af88dfaabf4d Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 27 Apr 2007 10:37:39 +0000 Subject: [PATCH] New capability for configuring question types. --- lang/en_utf8/role.php | 1 + lib/db/access.php | 12 ++++++++++++ version.php | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/role.php b/lang/en_utf8/role.php index 813464c325..7cce8ddf56 100644 --- a/lang/en_utf8/role.php +++ b/lang/en_utf8/role.php @@ -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'; diff --git a/lib/db/access.php b/lib/db/access.php index 185cf34cf2..b6010665f1 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -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', diff --git a/version.php b/version.php index 05c0c49f61..36f4078d49 100644 --- a/version.php +++ b/version.php @@ -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 -- 2.39.5