def METHOD_NAME(self, request, course_id, *args, **kwargs):
    """
    Checks for course author access for the given course by the requesting user.
    Calls the view function if has access, otherwise raises a 403.
    """
    course_key = CourseKey.from_string(course_id)
    if not has_course_author_access(request.user, course_key):
        raise DeveloperErrorViewMixin.api_error(
            status_code=status.HTTP_403_FORBIDDEN,
            developer_message='The requesting user does not have course author permissions.',
            error_code='user_permissions',
        )
    return view(self, request, course_key, *args, **kwargs)