I have developped an admin plugin and I would like to give an access to some pages for teachers users.
I have read about roles / capability / context, but I am not sure if it is possible to do that.
Could you please provide an example with the capability to set in the db/access.php ?
A teacher has the 'Teacher' role only inside particular courses. Most report and admin screens are outside any course.
One way to solve this problem is to make a new role, something like 'Site-wide teacher', which you assign at system leve, and which gives people extra permissions there. Sort-of a bit like manager, but less powerful.