CourseDetailView: check whether user is student or lecturer. This should be done for the other views as well