]> git.mjollnir.org Git - moodle.git/commitdiff
New capability for configuring question types.
authortjhunt <tjhunt>
Fri, 27 Apr 2007 10:37:39 +0000 (10:37 +0000)
committertjhunt <tjhunt>
Fri, 27 Apr 2007 10:37:39 +0000 (10:37 +0000)
lang/en_utf8/role.php
lib/db/access.php
version.php

index 813464c3257e166ec76e02e22ddeb77393c6feb0..7cce8ddf566083b16491acbf51af18a0e6423ddd 100644 (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';
index 185cf34cf2fb8feeb2ee9a7b3b4ef86247c31661..b6010665f1e6bdf3ccff7cdf55d105c6143b7253 100644 (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',
index 05c0c49f613a39c8fb1f1bcedfc7d7a1ee529aeb..36f4078d49bb5ff1fd06b1dc394c12d95c824a57 100644 (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