- Add two activities (A, B) with manual completion
- Set the activity B to be unavailable until activity A is complete
- Set activity B to be visible, even when unavailable
- Login as student
- Visit the course and mark B as complete (A should still be incomplete)
- An error shows up
- The button to mark the activity B as complete should not be displayed as the user doesn't have access to it.