mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Merge branch 'MDL-78443-master' of https://github.com/jleyva/moodle
This commit is contained in:
commit
4ab6108c79
@ -3091,6 +3091,9 @@ class core_course_category implements renderable, cacheable_object, IteratorAggr
|
||||
* @return bool
|
||||
*/
|
||||
public function can_request_course() {
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot . '/course/lib.php');
|
||||
|
||||
return course_request::can_request($this->get_context());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user