MDL-34155 use course visibility default when creator does not have moodle/course:visibility
This commit is contained in:
@@ -223,7 +223,7 @@ class course_edit_form extends moodleform {
|
||||
if (!empty($course->id)) {
|
||||
$mform->setConstant('visible', $course->visible);
|
||||
} else {
|
||||
$mform->setConstant('visible', $category->visible);
|
||||
$mform->setConstant('visible', $courseconfig->visible);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user