mirror of
https://github.com/moodle/moodle.git
synced 2025-04-18 23:15:38 +02:00
MDL-34155 use course visibility default when creator does not have moodle/course:visibility
This commit is contained in:
parent
2cbdaa77ea
commit
2b42c88170
@ -229,7 +229,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user