def METHOD_NAME(user, course_id):
    """
    Return whether a user is course staff for a given course, described by the course_id,
    or is global staff.
    """
    return user.is_staff or auth.user_has_role(user, CourseStaffRole(CourseKey.from_string(course_id)))