]> git.mjollnir.org Git - moodle.git/commitdiff
Added some default roles that should have moodle/grade:viewhidden
authormoodler <moodler>
Thu, 4 Oct 2007 15:45:37 +0000 (15:45 +0000)
committermoodler <moodler>
Thu, 4 Oct 2007 15:45:37 +0000 (15:45 +0000)
related to MDL-11580

lib/db/access.php

index 870d2e82dea1d839bd6d17031c2fcaf6179f11e9..df7ec364c1b3ae269c9579b5f23ef85c548a76ca 100644 (file)
@@ -1002,6 +1002,9 @@ $moodle_capabilities = array(
         'captype' => 'read',
         'contextlevel' => CONTEXT_COURSE, // and CONTEXT_PERSONAL too
         'legacy' => array(
+            'teacher' => CAP_ALLOW,
+            'editingteacher' => CAP_ALLOW,
+            'admin' => CAP_ALLOW
         ),
         'clonepermissionsfrom' => 'moodle/course:viewcoursegrades'
     ),