mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-40723 use guess_if_creator_will_have_course_capability() for the new weird function
This commit is contained in:
parent
dba745265f
commit
54d5308ef0
4 changed files with 28 additions and 28 deletions
|
@ -105,7 +105,7 @@ class course_edit_form extends moodleform {
|
|||
$mform->setConstant('visible', $course->visible);
|
||||
}
|
||||
} else {
|
||||
if (!will_have_course_capability('moodle/course:visibility', $categorycontext)) {
|
||||
if (!guess_if_creator_will_have_course_capability('moodle/course:visibility', $categorycontext)) {
|
||||
$mform->hardFreeze('visible');
|
||||
$mform->setConstant('visible', $courseconfig->visible);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue