What is the URL of the page?
https://moodledev.io/docs/4.1/apis/subsystems/access
What is the issue with this page?
In the table, contextlevel states
This capability can be checked with contexts that are at a lower level (e.g. moodle/site:accessallgroups could be checked with CONTEXT_MODULE).
However I do not believe this is true.
I tested this locally and regardless of what is set there, they can be checked anywhere. The only thing this seems to affect it how the permissions are grouped on pages like /admin/roles/check.php (e.g. via https://github.com/moodle/moodle/blob/8316779bd99bbf9f447b7244bc914452170f7eba/public/lib/accesslib.php#L4741-L4764 - which is only used for display)
Are you able to provide a patch for this?
Yes - I will create one
What is the URL of the page?
https://moodledev.io/docs/4.1/apis/subsystems/access
What is the issue with this page?
In the table,
contextlevelstatesHowever I do not believe this is true.
I tested this locally and regardless of what is set there, they can be checked anywhere. The only thing this seems to affect it how the permissions are grouped on pages like
/admin/roles/check.php(e.g. via https://github.com/moodle/moodle/blob/8316779bd99bbf9f447b7244bc914452170f7eba/public/lib/accesslib.php#L4741-L4764 - which is only used for display)Are you able to provide a patch for this?
Yes - I will create one