]> git.mjollnir.org Git - moodle.git/commitdiff
added new capability 'moodle/course:managemetacourses'
authorskodak <skodak>
Sun, 17 Sep 2006 21:03:35 +0000 (21:03 +0000)
committerskodak <skodak>
Sun, 17 Sep 2006 21:03:35 +0000 (21:03 +0000)
lib/db/access.php
version.php

index bc45a2307b94d2496b87fe60bce4f020d014e4e1..6975043f94cccd7075f45f228f7b614791669cad 100644 (file)
@@ -562,6 +562,20 @@ $moodle_capabilities = array(
         )
     ),
     
+    'moodle/course:managemetacourses' => array(
+    
+        'captype' => 'write',
+        'contextlevel' => CONTEXT_COURSE,
+        'legacy' => array(
+            'guest' => CAP_PREVENT,
+            'student' => CAP_PREVENT,
+            'teacher' => CAP_PREVENT,
+            'editingteacher' => CAP_ALLOW,
+            'coursecreator' => CAP_ALLOW,
+            'admin' => CAP_ALLOW
+        )
+    ),
+    
     'moodle/course:activityvisibility' => array(
     
         'captype' => 'write',
index f01423f67055b414b168fe0e83b18a00180a42aa..3797ebc688a4e7c8c38b37c5c2aca93ee308d179 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 = 2006091701;  // YYYYMMDD = date
+   $version = 2006091702;  // YYYYMMDD = date
                            //       XY = increments within a single day
 
    $release = '1.7 dev';    // Human-friendly version name