Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Do
-
2.7.10, 2.8.8, 2.9.2, 3.0
-
None
-
None
-
MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
-
-
Description
When resources are placed in a 'stealth section' they are only shown when editing is on. However if you have an 'Activities' block (Activity Module Block) and access via the 'Resources' link the file '/course/resources.php' then the resources are shown to the user.
A user will place activities / resources in a stealth section to 'hide' them from the user such that only a link etc. will gain them access when perhaps some activity has been completed.
Therefore stealth resources on this page should only be presented to users with the 'moodle/course:update' capability and when editing is on as they are in 'print_multiple_section_page' of '/course/format/renderer.php'.
Discovered in M2.9 but suspect affects M2.8 too.