]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16085 fixed typo -thanks John Ryan
authorskodak <skodak>
Sun, 17 Aug 2008 20:18:30 +0000 (20:18 +0000)
committerskodak <skodak>
Sun, 17 Aug 2008 20:18:30 +0000 (20:18 +0000)
grade/report/user/index.php

index 137ddbfec546773f822fee4cb43285604c5d785a..cff513c4a68636215ff224ce508ea319a7140793 100644 (file)
@@ -56,7 +56,7 @@ if (has_capability('moodle/grade:viewall', $context)) {
 } else if ($userid == $USER->id and has_capability('moodle/grade:view', $context) and $course->showgrades) {
     //ok - can view own grades
 
-} else if ($has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_USER, $userid)) and $course->showgrades) {
+} else if (has_capability('moodle/grade:viewall', get_context_instance(CONTEXT_USER, $userid)) and $course->showgrades) {
     // ok - can view grades of this user- parent most probably
 
 } else {