def user_id(node):
    """
    Extracts owner's user ID from a project tree node.

    :param Node node: project tree node.
    :return: task owner's ID or -1 if not present.
    :rtype: int
    """
    return node.item.user_id if node.item.user_id else -1