]> git.mjollnir.org Git - moodle.git/commitdiff
adding of user events into calendar and posting of blogs is now enabled by default...
authorskodak <skodak>
Tue, 31 Oct 2006 09:09:40 +0000 (09:09 +0000)
committerskodak <skodak>
Tue, 31 Oct 2006 09:09:40 +0000 (09:09 +0000)
lib/db/access.php

index 19faadf053caa8eefeefddd642816324ad3c2f76..440e0dfcb76cf34690a75e08c713bb763cbc2ce9 100644 (file)
@@ -668,13 +668,14 @@ $moodle_capabilities = array(
         )
     ),
 
-    'moodle/blog:create' => array(
+    'moodle/blog:create' => array( // works in CONTEXT_SYSTEM only
 
         'riskbitmask' => RISK_SPAM,
 
         'captype' => 'write',
         'contextlevel' => CONTEXT_SYSTEM,
         'legacy' => array(
+            'guest' => CAP_ALLOW, // needed for default role that allows everybody to post blog entries
             'student' => CAP_ALLOW,
             'teacher' => CAP_ALLOW,
             'editingteacher' => CAP_ALLOW,
@@ -723,13 +724,14 @@ $moodle_capabilities = array(
         )
     ),
 
-    'moodle/calendar:manageownentries' => array(
+    'moodle/calendar:manageownentries' => array( // works in CONTEXT_SYSTEM only
 
         'riskbitmask' => RISK_SPAM,
 
         'captype' => 'write',
         'contextlevel' => CONTEXT_SYSTEM,
         'legacy' => array(
+            'guest' => CAP_ALLOW, // needed for default role that allows everybody to add user entries
             'student' => CAP_ALLOW,
             'teacher' => CAP_ALLOW,
             'editingteacher' => CAP_ALLOW,