Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.9, 3.1
-
Fix Version/s: 3.1
-
Component/s: Assignment, Web Services
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_29_STABLE, MOODLE_31_STABLE
-
Fixed Branches:MOODLE_31_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-49934-master -
Pull Master Diff URL:
Description
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