- Log in as teacher
- Navigate to Course administration -> Users -> Permissions
- Update capability by adding/prohibiting student role.
- Make sure you get an alert for any role capability modification (clicking "+" or "x")
- Ensure capabilities are updated as per requirement
- Search for capability and make sure filter works.