From 52fd09b87b544617c5e2412cd51e83f3bdadfe12 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:40:10 +0100 Subject: [PATCH] Chore: Removed code that spans out of scope --- backend/src/ee/services/scim/scim-service.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backend/src/ee/services/scim/scim-service.ts b/backend/src/ee/services/scim/scim-service.ts index 0f3a44c12..6ed594777 100644 --- a/backend/src/ee/services/scim/scim-service.ts +++ b/backend/src/ee/services/scim/scim-service.ts @@ -443,15 +443,6 @@ export const scimServiceFactory = ({ }); } - const organization = await orgDAL.findById(scimToken.orgId); - - if (!organization.scimEnabled) { - throw new ScimRequestError({ - detail: "SCIM is disabled for the organization", - status: 403 - }); - } - return { scimTokenId: scimToken.id, orgId: scimToken.orgId }; };