by Aniket Sankpal.
How to know whether the user has access to the specific course activity or not using API function.
I am using moodle version 3.2.
I am searching API function whereby passing user id and cmid it should return user can access the activity, Or not if no then, user has to complete the previous activity to access current activity, with all its completion criteria.