-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.2, 4.1.4
-
MOODLE_401_STABLE
The web service behavior when accessing a user's data who has not agreed to a required policy is inconsistent.
- Enable a site policy with core policy handler by setting a policy URL
- Create a new user (in the example below, user id is 7)
- Enrol this user to a course
- Gather token (in the example below, 98dbee3c9d4d7dc3920ece696650a073 is a valid token for the user)
Then, compare the outputs of the following commands:
Expected behaviour: a sitepolicynotagreed exception should be displayed for each query, instead of returning an incorrect result (empty course list even though user is enrolled to some courses) or a errorcoursecontextnotvalid exception.
- will be (partly) resolved by
-
MDL-73008 Allow accepting/declining optional site policies via WebService
- Closed