Hi,
I work on my plugin and i want to display all activities in course (use course id) for one user.
Currently my list contains all activities in course for user and i can't check if the student can really access (because i have many group restriction by course). For exemple if my student is in Groupe A, i want to diplay all activities visible for this student (exluding activities for Groupe B in the same course).
I know it's possible to use
$courseinfo = new \course_modinfo($course, $USER->id); but the result list all activities.
Anybody can help me ?
Thank you
Thank you