fix: SAML SSO - Stop relying on invitedTo column and use membership table instead (#11331)

This commit is contained in:
Kiran K authored and GitHub committed 2023-09-14 14:57:45 +02:00
1 parent bb0574dff8
commit d2b0dd8eab
4 files changed
+62 -44

No files matched your search

@@ -1,4 +1,4 @@
import { samlTenantProduct } from "@calcom/features/ee/sso/lib/saml";
import { ssoTenantProduct } from "@calcom/features/ee/sso/lib/sso";
import type { PrismaClient } from "@calcom/prisma";
import type { TSamlTenantProductInputSchema } from "./samlTenantProduct.schema";
@@ -14,7 +14,7 @@ export const samlTenantProductHandler = ({ ctx, input }: SamlTenantProductOption
const { prisma } = ctx;
const { email } = input;
return samlTenantProduct(prisma, email);
return ssoTenantProduct(prisma, email);
};
export default samlTenantProductHandler;