mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 14:15:11 +02:00
Merge branch 'MDL-78443-401' of https://github.com/jleyva/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
aa44a1643e
@ -3098,6 +3098,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