MDL-28503 comment-caps Slight improvement to allow frontpage and guest users to view comments by default

This commit is contained in:
Sam Hemelryk
2011-07-29 09:32:48 +08:00
parent 5167f4c9b1
commit b3da2877a7

View 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,