]> git.mjollnir.org Git - moodle.git/commitdiff
fix for MDL-5670
authortoyomoyo <toyomoyo>
Fri, 29 Sep 2006 02:19:27 +0000 (02:19 +0000)
committertoyomoyo <toyomoyo>
Fri, 29 Sep 2006 02:19:27 +0000 (02:19 +0000)
lib/db/access.php

index 15bf87517aa35d77be86d15be0108c3c4681c4d1..78dffbfb7b72925999c93a8e2d23acc27e9bfdd8 100644 (file)
@@ -1075,7 +1075,7 @@ $moodle_capabilities = array(
 
     'moodle/user:viewusergrades' => array(
         'captype' => 'write',
-        'contextlevel' => CONTEXT_COURSE,
+        'contextlevel' => CONTEXT_USER,
         'legacy' => array(
             'guest' => CAP_PREVENT,
             'student' => CAP_ALLOW,