While additional Moodle functionality developing for one of our customers required check the user the presence of his only as a «Student» role for a given course, while if the user has the teacher or manager role, the function should return false. In Moodle there are two similar functions, but they perform a few more […]