-
Improvement
-
Resolution: Fixed
-
Minor
-
2.9, 3.1
-
MOODLE_29_STABLE, MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
MDL-49934-master -
This external function doesn't work for not-enrolled users (even if they are admins or managers with global roles that can access the course and manage it).
The functions uses incorrectly the enrol_get_users_courses function instead of relying in validate_context checks