Hello,
I'm trying to pull in the completion status of a course for a user, using the webservice: core_completion_get_course_completion_status
but I am getting the error message:
[ERRORCODE] => cannotviewreport [MESSAGE] => You cannot view this report
I dug a little into the code and in the function get_course_completion_status() there is a test to see if the userid passed in the post request is the same as the logged in user, line 280 of /completion/classes/external.php.
I don't see the point of this test, I believe it is not relevant for a webservice as the whole point is to get info when not on the site.
Am I missing something or should this test be removed?
Thanks,
Dan
Using Moodle 3.0.