Add a commented code on lib.php to retrieve the list of students allowed to follow the course.