Disabled student view if course is not yet released for students.

LMS-6617

Disabled student view button if course is not yet visible to students.
1) Should this be captured as a variable so that we don't have this redundancy? Also, the course is also not open to beta testers.