Merge branch 'master_MDL-68054' of https://github.com/danmarsden/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 27 May 2020 04:12:27 +0000 (12:12 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 27 May 2020 04:12:27 +0000 (12:12 +0800)
lib/db/access.php

index 46af6d3..0db35e1 100644 (file)
@@ -969,7 +969,7 @@ $capabilities = array(
 
     'moodle/course:viewhiddenactivities' => array(
 
-        'captype' => 'write',
+        'captype' => 'read',
         'contextlevel' => CONTEXT_MODULE,
         'archetypes' => array(
             'teacher' => CAP_ALLOW,
@@ -1558,7 +1558,7 @@ $capabilities = array(
 
     'moodle/course:viewhiddensections' => array(
 
-        'captype' => 'write',
+        'captype' => 'read',
         'contextlevel' => CONTEXT_COURSE,
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,