Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
simplify
adilsonfa98dd95a750
diff --git a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.tsindex 14223b304b..08f858f0a2 100644--- a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts+++ b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts@@ -877,7 +877,7 @@ export const secretV2BridgeServiceFactory = ({key: inputSecret.secretName,folderId,type: inputSecret.type,- ...(inputSecret.type === SecretType.Personal ? { userId: actorId } : {})+ ...(inputSecret.type === SecretType.Personal && { userId: actorId })});if (!secretToDelete) throw new NotFoundError({ message: "Secret not found" });if (inputSecret.type === SecretType.Shared) {@@ -901,7 +901,7 @@ export const secretV2BridgeServiceFactory = ({});}- if (secretToDelete.type !== SecretType.Personal)+ if (inputSecret.type === SecretType.Shared)ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionSecretActions.Delete,subject(ProjectPermissionSub.Secrets, {