Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28503 comment-caps Slight improvement to allow frontpage and gues…

…t users to view comments by default
  • Loading branch information...
commit 2fa0daefcaa8e9a063a8ee7593b76f967e0acad6 1 parent 9da3c2e
@samhemelryk samhemelryk authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/db/access.php
View
3  lib/db/access.php
@@ -1641,10 +1641,11 @@
)
),
'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,
Please sign in to comment.
Something went wrong with that request. Please try again.