How to get a current logged in user role in moodle?