Hi,
I want to introduce a new capability for a custom block. It is a special capability which only students (student role) should have. All others (teacher, tutors, admins, guest) should NOT have this capability.
So I tried to use the following descriptor:
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'legacy' => array(
'guest' => CAP_PREVENT,
'student' => CAP_ALLOW,
'teacher' => CAP_PROHIBIT,
'editingteacher' => CAP_PROHIBIT,
'admin' => CAP_PROHIBIT
)
For students, teachers, guests and tutors all works fine. But admins still have the capability in spite it is set to be prohibited. It seems that admins are super-users with all privileges, I cannot prevent them from using my custom capability.
What can I do?