mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +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
|
@ -184,7 +184,7 @@ class enrol_guest_plugin extends enrol_plugin {
|
|||
|
||||
$header = $this->get_instance_name($instance);
|
||||
if (!$i) {
|
||||
$config = will_have_course_capability('enrol/guest:config', $context);
|
||||
$config = guess_if_creator_will_have_course_capability('enrol/guest:config', $context);
|
||||
} else {
|
||||
$config = has_capability('enrol/guest:config', $context);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue