Project: moodle
Issue MDL-38868: Web Services returns empty array when permissions are invalid for 'core_user_get_users_by_id' request
When using the Web Services over REST (with JSON return) Moodle will return an empty array ('[]') when permissions are not enabled for the command 'core_user_get_users_by_id'. It should return an 'Invalid permissions' error in the JSON response.
Story points: 8