-
Improvement
-
Resolution: Fixed
-
Minor
-
3.9.2, 3.11
-
MOODLE_311_STABLE, MOODLE_39_STABLE
-
MOODLE_311_STABLE
-
At the moment there is just a single capability 'mod/quiz:manageoverrides' which controls access to the screens where you can see which User and Group overrides exist and edit them.
We now have a requirement for some people to just be able to check the list, without being able to alter it. So, that would require adding capability 'mod/quiz:viewoverrides' (giving to non-editing teacher by default), and for users who have that capability, but not 'mod/quiz:manageoverrides', then they should be able to see the overrides that exist without editing them.
I think this just requires:
- Add the new capabillity to mod/quiz/db/access.php. I suggest giving it to Non-editing teacher by default.
- In quiz_extend_settings_navigation in mod/quiz/lib.php, show the list to uses with either capability, not just the current one.
- Edit mod/quiz/overrides.php so that if you have the new capability, you can access that page, but without any of the editing controls.
- Add a Behat test to verify it.