MDL-28503 comment-caps Slight improvement to allow frontpage and guest users to view...
authorSam Hemelryk <sam@moodle.com>
Fri, 29 Jul 2011 01:32:48 +0000 (09:32 +0800)
committerSam Hemelryk <sam@moodle.com>
Fri, 29 Jul 2011 01:32:48 +0000 (09:32 +0800)
lib/db/access.php

index c9f0ee2..bc42449 100644 (file)
@@ -1641,10 +1641,11 @@ $capabilities = array(
         )
     ),
     'moodle/comment:view' => array(
-
         'captype' => 'read',
         'contextlevel' => CONTEXT_COURSE,
         'archetypes' => array(
+            'frontpage' => CAP_ALLOW,
+            'guest' => CAP_ALLOW,
             'user' => CAP_ALLOW,
             'student' => CAP_ALLOW,
             'teacher' => CAP_ALLOW,