This test requires conditional access be enabled globally (via Advanced Features) and within a course via Course administration>Edit settings. It also requires a course with a teacher and test student enrolled.
- Log in as a teacher, log in to a course and create a Page resource.
- Expand the Activity completion section and set 'Show activity as complete when conditions are met' and criterion to be 'Require view'.
- Save the page.
- Create a forum.
- Expand the Restrict Access section and click 'Add restriction'.
- Click 'Activity completion' and choose the Page resource, leaving the restriction at 'must match' Save the forum.
- Log in as a test student and verify the forum is unavailable with a restriction message relating to the page.
- Log back in as a teacher and click to edit the forum.
- Click the 'eye' icon to hide the forum completely and save again.
- Log in as a test student and verify the forum is not visible at all.