]> git.mjollnir.org Git - moodle.git/commitdiff
fixed missing if (!
authorskodak <skodak>
Wed, 6 Sep 2006 10:15:05 +0000 (10:15 +0000)
committerskodak <skodak>
Wed, 6 Sep 2006 10:15:05 +0000 (10:15 +0000)
grade/lib.php

index c8a2200848ddbfa834ed510fc4e8965e06779141..0bd9dc546d3b2e8134b6d263b45be60aa53397ab 100644 (file)
@@ -1063,7 +1063,7 @@ function grade_set_preferences($course, $newprefs) {
 
 function grade_preferences_menu($action, $course, $group=0) {
 
-    has_capability('moodle/course:managegrades', get_context_instance(CONTEXT_COURSE, $courseid)) {
+    if (!has_capability('moodle/course:managegrades', get_context_instance(CONTEXT_COURSE, $course->id))) {
         return;
     }