remove before_action authenticate_professor! on courses_controller.