From 0371f8e52fff34e1db50ccd597210e994b2c5368 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 4 Oct 2007 15:45:37 +0000 Subject: [PATCH] Added some default roles that should have moodle/grade:viewhidden related to MDL-11580 --- lib/db/access.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/db/access.php b/lib/db/access.php index 870d2e82dea..df7ec364c1b 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -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' ),