fix: resolved path incorrect joining

This commit is contained in:
=
2025-12-07 20:09:55 +05:30
parent 75e15b2831
commit 75de20132e

View File

@@ -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);