From 75de20132e81913e433c54ea645148aaea7c032e Mon Sep 17 00:00:00 2001 From: = Date: Sun, 7 Dec 2025 20:09:55 +0530 Subject: [PATCH] fix: resolved path incorrect joining --- backend/src/ee/services/pam-account/pam-account-service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 475e695ec..b473b6b99 100644 --- a/backend/src/ee/services/pam-account/pam-account-service.ts +++ b/backend/src/ee/services/pam-account/pam-account-service.ts @@ -1,3 +1,5 @@ +import path from "node:path"; + import { ForbiddenError, subject } from "@casl/ability"; import { ActionProjectType, OrganizationActionScope, TPamAccounts, TPamFolders, TPamResources } from "@app/db/schemas"; @@ -551,7 +553,7 @@ export const pamAccountServiceFactory = ({ const inputs = { resourceId: resource.id, - accountPath: `${folderPath}/${account.name}` + accountPath: path.join(folderPath, account.name) }; const canAccess = await fac.canAccess(approvalRequestGrantsDAL, resource.projectId, actor.id, inputs);