General developer forum

Is it possible to give the access to an admin plugin for teachers?

 
Picture of Ludo M
Is it possible to give the access to an admin plugin for teachers?
 

Hello,

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 ?

 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: Is it possible to give the access to an admin plugin for teachers?
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

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.

 
Average of ratings: -