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, };