Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2364

No access rights in course context

$
0
0
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.



Viewing all articles
Browse latest Browse all 2364

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>