mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +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
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class course_edit_form extends moodleform {
|
||||||
if (!empty($course->id)) {
|
if (!empty($course->id)) {
|
||||||
$mform->setConstant('visible', $course->visible);
|
$mform->setConstant('visible', $course->visible);
|
||||||
} else {
|
} else {
|
||||||
$mform->setConstant('visible', $category->visible);
|
$mform->setConstant('visible', $courseconfig->visible);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue