A new admin report that allows the user to select a capability, and then lists, for every role:
- the permission for that capability in the definition of the role. This will be a link to the edit role page for this role.
- and every context where that capability is overridden, and that the permission is overridden to.
The contexts will be shown as a tree, using <ul> tags. Each context name will be a link to the corresponding override role page.
The links are to make it easy to update the information that appears in the report. Each link will only appear if the user is allowed to go there.
This report will be available to anyone with capability moodle/role:manage.
The report will have URLs like ....php?capability=moodle/question:edit, so it is easy to construct links to it from elsewhere.
Question: should this be an admin report plugin, or part of the roles admin interface?