Hi
I'm new to Moodle and just getting my head round the roles and capabilities system. I think I've got the rough idea how I can define allowed usage of a module in the access file but my case is that within a module I want to be able to detect the role of the current user and allow access to that one script or nor depending on the role.
How would I do this?
Thanks.