From: skodak Date: Wed, 6 Sep 2006 10:15:05 +0000 (+0000) Subject: fixed missing if (! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e91f3c2d6bd107c9cfce49511a59301dacd2e9ab;p=moodle.git fixed missing if (! --- diff --git a/grade/lib.php b/grade/lib.php index c8a2200848..0bd9dc546d 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -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; }