From 2fa0daefcaa8e9a063a8ee7593b76f967e0acad6 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Fri, 29 Jul 2011 09:32:48 +0800 Subject: [PATCH] MDL-28503 comment-caps Slight improvement to allow frontpage and guest users to view comments by default --- lib/db/access.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db/access.php b/lib/db/access.php index c9f0ee2333f..bc42449928d 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -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,