Skip to content

Commit

Permalink
MDL-28503 comment-caps Slight improvement to allow frontpage and gues…
Browse files Browse the repository at this point in the history
…t users to view comments by default
  • Loading branch information
Sam Hemelryk committed Jul 29, 2011
1 parent 5167f4c commit b3da287
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/db/access.php
Expand Up @@ -1641,10 +1641,11 @@
) )
), ),
'moodle/comment:view' => array( 'moodle/comment:view' => array(

'captype' => 'read', 'captype' => 'read',
'contextlevel' => CONTEXT_COURSE, 'contextlevel' => CONTEXT_COURSE,
'archetypes' => array( 'archetypes' => array(
'frontpage' => CAP_ALLOW,
'guest' => CAP_ALLOW,
'user' => CAP_ALLOW, 'user' => CAP_ALLOW,
'student' => CAP_ALLOW, 'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW, 'teacher' => CAP_ALLOW,
Expand Down

0 comments on commit b3da287

Please sign in to comment.