[AMOS commit] MDL-85431 questions: Fix access checks on Question banks page Committed into Git: 2026-01-05 11:28 UTC

[AMOS commit] MDL-85431 questions: Fix access checks on Question banks page Committed into Git: 2026-01-05 11:28 UTC

by AMOS bot -
Number of replies: 0
Author: Mark Johnson
MDL-85431 questions: Fix access checks on Question banks page
Users who could not manage activities on a course, but did have
permission to access particular question banks, could not access the
Question banks page.

This modifies the permission checks on that page to allow access if the
user can either manage activities, or has access to at least one
activity that publishes questions. Some additional changes to the output
were required to prevent non-editing users adding banks.

It also modifies the navigation hook to add the Question banks
navigation node if the user can access any activitiy that publishes
questions on the course. This is all based on cached modinfo and
permissions data so should remain performant.


http://git.moodle.org/gw?p=moodle.git;a=commit;h=fbf29633879b4bd4fe7da415edd64a54269635ab
http://github.com/moodle/moodle/commit/fbf29633879b4bd4fe7da415edd64a54269635ab

+ 5.0 en [nobankpermissions,core_question]