Skip to content

Commit

Permalink
MDL-78443 course: Missing require for course_request
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Jun 16, 2023
1 parent 64b7011 commit bc2fb3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions course/classes/category.php
Expand Up @@ -3098,6 +3098,9 @@ public function get_parent_coursecat() {
* @return bool
*/
public function can_request_course() {
global $CFG;
require_once($CFG->dirroot . '/course/lib.php');

return course_request::can_request($this->get_context());
}

Expand Down

0 comments on commit bc2fb3b

Please sign in to comment.