Permissions for non-standard modules

Permissions for non-standard modules

Karen McClelland發表於
Number of replies: 1
I need to set up a situation where a course has separate groups with one teacher assigned to each group. So far so good, but I need these teachers to be able to view the responses from a number of questionnaires from the students in their own group only. I have installed the questionnaire module and set it up as separate groups.

Editing teachers can see responses from all students and non-editing teachers can't see any. I have tinkered with the role overrides but can't seem to get round this one. So I considered creating a new role for the purpose but there still will not be any way of setting capabilities for the questionnaire mod as it is not included in the override list.

As far as I can see, the capabilities of standard modules are defined in mod/modname/db/access.php. The questionnaire module does not have this file. If I create one will the capabilities be visible in the override list? Do I also have to modify lib/db/access.php?

Apologies if I have posted this in the wrong place.


評比平均分數: -