by Sukhmeet S.
We are calling the below API to get the quizzes for a course.
webservice/rest/server.php?wsfunction=mod_quiz_get_quizzes_by_courses&moodlewsrestformat=json&wstoken=XXXX&courseids[1]=9863
The API is giving the warning 'No access rights in course context' as below.
{
"quizzes": [],
"warnings": [
{
"item": "course",
"itemid": 9863,
"warningcode": "1",
"message": "No access rights in course context"
}
]
}
The user and webservices permissions configurations are done correctly by following this link https://docs.moodle.org/310/en/Using_web_services . This API works fine with one moodle installation but for another one we are getting above warning [Both are Moodle 3.9.x versions].Can anyone please help with what might be causing the issue.