mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
fixed missing if (!
This commit is contained in:
parent
6a5a62b096
commit
e91f3c2d6b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user