Hello, I'm writing in this forum, because I have doubts about how to use moodle capabilities.
I am developing a block whose content should only be visible to administrators, teachers and non editing teachers.
I show you how is my code:
Capability definition in access.php
My block is located in site-index.
I'm logged in as a teacher, but it shows the message you do not have permission!!
Could you help me know what I'm doing wrong?
thank you very much to all!!