export function assertOwnership(reply, resource, userId, errorMessage) {
    if (!resource || resource.userId !== userId) {
        void reply.status(404).send({ error: errorMessage });
        return false;
    }
    return true;
}
//# sourceMappingURL=ownership.js.map