mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
fix: resolved path incorrect joining
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user