Hi Vittore, you might find this useful:
http://moodle.org/xref/nav.html?_functions/index.html
then search on the page for isadmin() and isteacher()
I believe that they are defined in /lib/moodlelib.php
hope this helps!
Blocks
Display a block only if admin
This discussion has been locked so you can no longer reply to it.