]> git.mjollnir.org Git - moodle.git/commitdiff
Whoops, checked in wrong file before
authormoodler <moodler>
Mon, 18 Jun 2007 07:35:14 +0000 (07:35 +0000)
committermoodler <moodler>
Mon, 18 Jun 2007 07:35:14 +0000 (07:35 +0000)
grade/report/user/db/access.php

index b05cc56f23d42361aa0c3d66611b5f3b5ed42a44..d8190af01b5271aa2310d2f71fd83fedb84863ad 100644 (file)
@@ -7,16 +7,17 @@ $gradereport_grader_capabilities = array(
         'captype' => 'read',
         'contextlevel' => CONTEXT_COURSE,
         'legacy' => array(
+            'student' => CAP_ALLOW,
             'teacher' => CAP_ALLOW,
             'editingteacher' => CAP_ALLOW,
             'admin' => CAP_ALLOW
         )
     ),
 
-    'gradereport/grader:manage' => array(
-        'riskbitmask' => RISK_PERSONAL | RISK_CONFIG,
-        'captype' => 'write',
-        'contextlevel' => CONTEXT_COURSE,
+    'moodle/user:viewusergrade' => array(
+        'riskbitmask' => RISK_PERSONAL,
+        'captype' => 'read',
+        'contextlevel' => CONTEXT_USER,
         'legacy' => array(
             'teacher' => CAP_ALLOW,
             'editingteacher' => CAP_ALLOW,