gradebook MDL-24682 1.9 corrected a capability check that was incorrectly allowing some users to make a course scale a standard scale
This commit is contained in:
@@ -83,7 +83,8 @@ class edit_scale_form extends moodleform {
|
||||
if (empty($courseid)) {
|
||||
$mform->hardFreeze('standard');
|
||||
|
||||
} else if (empty($scale->courseid) and !has_capability('moodle/course:managescales', get_context_instance(CONTEXT_SYSTEM))) {
|
||||
} else if (!has_capability('moodle/course:managescales', get_context_instance(CONTEXT_SYSTEM))) {
|
||||
//if they dont have managescales at system level the shouldnt be allowed to make scales standard (or not standard)
|
||||
$mform->hardFreeze('standard');
|
||||
|
||||
} else if ($used and !empty($scale->courseid)) {
|
||||
|
||||
Reference in New Issue
Block a user