From ede23572031a9d08a18dfd42550d54c5c82b7f80 Mon Sep 17 00:00:00 2001 From: Mehul Date: Mon, 22 Jan 2024 21:11:43 +0530 Subject: [PATCH] fix: SAML postgres err (#12437) --- .../server/routers/publicViewer/ssoConnections.handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/trpc/server/routers/publicViewer/ssoConnections.handler.ts b/packages/trpc/server/routers/publicViewer/ssoConnections.handler.ts index 3acbd91053..f9a170c678 100644 --- a/packages/trpc/server/routers/publicViewer/ssoConnections.handler.ts +++ b/packages/trpc/server/routers/publicViewer/ssoConnections.handler.ts @@ -1,12 +1,12 @@ import jackson from "@calcom/features/ee/sso/lib/jackson"; -import { samlProductID, samlTenantID } from "@calcom/features/ee/sso/lib/saml"; +import { isSAMLLoginEnabled, samlProductID, samlTenantID } from "@calcom/features/ee/sso/lib/saml"; import { HOSTED_CAL_FEATURES } from "@calcom/lib/constants"; import { TRPCError } from "@trpc/server"; export const handler = async () => { try { - if (HOSTED_CAL_FEATURES) { + if (HOSTED_CAL_FEATURES || !isSAMLLoginEnabled) { return { connectionExists: null, };