MDL-31519 quiz: hide the activity on the course page if the user can't view it.

Apparently this callback is necessay to make everything work.