Replication steps:
- Log in as admin
- Navigate to Site admin > Development > Experimental > Experimental settings
- Check "Enable group members" (onlyenablegroupmembersonly)
- Navigate to Site admin > Advanced features
- Check "Enable conditional" (accessenableavailability)
- Navigate to a course
- Navigate to Course admin > Users > Groups
- Place some users in groups
- Click the Groupings tab
- Create some Groupings with one or more groups in each
- Navigate to Cours admin > Edit settings
- Set Format = 'Topics format' and Course layout = 'Show one section per page'
- Save settings
- Edit a section (topic) somewhere in the middle of the course
- Under "Restrict access" set "Grouping access" to a grouping
- Log in as student who is not in the grouping with access to the section
- If viewing a single section, click "Return to main course page"
- Note that the Course page shows the correct list of sections (without grouping restricted section)
- Note that the Navigation shows the correct list of sections (without grouping restricted section)
- Click on the section before the grouping restricted section
- Note that you can see a link to the grouping restricted section
- Click on the link - an error is shown
Sorry, but you do not currently have permissions to do that (View hidden sections)
|
|
More information about this error
|
|
Debug info:
|
Error code: nopermissions
|
Stack trace:
|
line 704 of \lib\accesslib.php: required_capability_exception thrown
|
line 112 of \course\view.php: call to require_capability()
|
- will be (partly) resolved by
-
MDL-34444 Topic links active with restricted conditional topics
- Closed