Hi aurélien,
you're near your goal : )
loop throught all these activities and use Availability API. (Display a list of users who may be able to access the current activity)
you're near your goal : )
loop throught all these activities and use Availability API. (Display a list of users who may be able to access the current activity)
$info = new \core_availability\info_module($cm); $filtered = $info->filter_user_list($users);
But
- This does not currently include the $cm->visible setting, nor does it take into account the viewhiddenactivities setting.
Hope it's help.
Dominique.