]> git.mjollnir.org Git - moodle.git/commitdiff
Added new capability
authormoodler <moodler>
Sat, 16 Sep 2006 13:56:24 +0000 (13:56 +0000)
committermoodler <moodler>
Sat, 16 Sep 2006 13:56:24 +0000 (13:56 +0000)
   moodle/role:viewhiddenassigns  - for people to see hidden assignments

lib/db/access.php
version.php

index abe294fdeca5e22d39e7d06a91b3ab1724cebffd..bc45a2307b94d2496b87fe60bce4f020d014e4e1 100644 (file)
@@ -352,6 +352,19 @@ $moodle_capabilities = array(
             'admin' => CAP_ALLOW
         )
     ),
+
+    'moodle/role:viewhiddenassigns' => array(
+        'captype' => 'read',
+        'contextlevel' => CONTEXT_SYSTEM,
+        'legacy' => array(
+            'guest' => CAP_PREVENT,
+            'student' => CAP_PREVENT,
+            'teacher' => CAP_ALLOW,
+            'editingteacher' => CAP_ALLOW,
+            'coursecreator' => CAP_ALLOW,
+            'admin' => CAP_ALLOW
+        )
+    ),
     
     'moodle/category:create' => array(
     
index 338ddc22522ce49105e1eda9e4842028256bc78f..d57c095d494a01c27c936c61a2a63908bf04de4b 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 = 2006091500;  // YYYYMMDD = date
+   $version = 2006091600;  // YYYYMMDD = date
                            //       XY = increments within a single day
 
    $release = '1.7 dev';    // Human-friendly version name