From: moodler Date: Fri, 15 Jun 2007 08:29:23 +0000 (+0000) Subject: Added two capabilities for the grader report X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0a6695f696809943aa3c90bea1bf9b2c99b94d26;p=moodle.git Added two capabilities for the grader report --- diff --git a/grade/report/grader/db/access.php b/grade/report/grader/db/access.php index 139597f9cb..a67c2ab907 100644 --- a/grade/report/grader/db/access.php +++ b/grade/report/grader/db/access.php @@ -1,2 +1,29 @@ + array( + 'riskbitmask' => RISK_PERSONAL, + 'captype' => 'read', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ) + ), + + 'gradereport/grader:manage' => array( + 'riskbitmask' => RISK_PERSONAL | RISK_CONFIG, + 'captype' => 'write', + 'contextlevel' => CONTEXT_COURSE, + 'legacy' => array( + 'teacher' => CAP_ALLOW, + 'editingteacher' => CAP_ALLOW, + 'admin' => CAP_ALLOW + ) + ) + +); + +?>