Skip to content

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

fix policy matching

x03220524f7445d56ee
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 6a3bcf7da1..1825920ef8 100644
--- a/backend/src/ee/services/pam-account/pam-account-service.ts
+++ b/backend/src/ee/services/pam-account/pam-account-service.ts
@@ -551,7 +551,7 @@ export const pamAccountServiceFactory = ({
const inputs = {
resourceId: resource.id,
- accountPath: folderPath
+ accountPath: `${accountPath}/${account.name}`
};
const canAccess = await fac.canAccess(approvalRequestGrantsDAL, actor.id, resource.projectId, inputs);