'Checks if the request user can access the course.
Raises 404 if the user does not have course access.'

def check_course_permissions(self, user, course):

    if (not self.user_can_access_course(user, course)):
        raise Http404
