fixed missing if (!

This commit is contained in:
skodak 2006-09-06 10:15:05 +00:00
parent 6a5a62b096
commit e91f3c2d6b

View 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;
}