function resolveCustomerDetailTenantScope(id, kind, auth) {
  const tenantId = auth.tenantId ?? null;
  const base = { id, kind, deletedAt: null };
  if (tenantId) {
    return { allowed: true, where: { ...base, tenantId } };
  }
  if (auth.isSuperAdmin === true) {
    return { allowed: true, where: base };
  }
  return { allowed: false, where: null };
}
export {
  resolveCustomerDetailTenantScope
};
//# sourceMappingURL=detailTenantScope.js.map
