]> git.mjollnir.org Git - moodle.git/commitdiff
Added moodle/site:accessallgroups capability.
authorvyshane <vyshane>
Tue, 8 Aug 2006 06:45:25 +0000 (06:45 +0000)
committervyshane <vyshane>
Tue, 8 Aug 2006 06:45:25 +0000 (06:45 +0000)
lib/db/access.php

index fceb126cde41528392eb0ae5e90d9368c7c38dfe..8131f635e062a31bfd2161de3762ae54d126f54e 100644 (file)
@@ -144,6 +144,20 @@ $moodle_capabilities = array(
         )
     ),
     
+    'moodle/site:accessallgroups' => 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/user:create' => array(
     
         'captype' => 'write',