Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore(pam-windows): trim disable comment

bernie-gb611c4232e19
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.ts
index 72799850d6..5d3b8d6470 100644
--- a/backend/src/ee/services/pam-account/pam-account-service.ts
+++ b/backend/src/ee/services/pam-account/pam-account-service.ts
@@ -896,10 +896,7 @@ export const pamAccountServiceFactory = ({
kmsService
);
- // Temporarily disable access to Windows Server. Cast prevents TS
- // from narrowing resourceType to "not Windows" so the blocks below
- // (recording-config check, metadata switch case) stay valid for
- // when this disable is lifted.
+ // Temporarily disable access to Windows Server
if ((resourceType as PamResource) === PamResource.Windows) {
throw new BadRequestError({ message: `Windows resources cannot be accessed at this time` });
}