mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 05:27:48 +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 { ForbiddenError, subject } from "@casl/ability";
|
||||||
|
|
||||||
import { ActionProjectType, OrganizationActionScope, TPamAccounts, TPamFolders, TPamResources } from "@app/db/schemas";
|
import { ActionProjectType, OrganizationActionScope, TPamAccounts, TPamFolders, TPamResources } from "@app/db/schemas";
|
||||||
@@ -551,7 +553,7 @@ export const pamAccountServiceFactory = ({
|
|||||||
|
|
||||||
const inputs = {
|
const inputs = {
|
||||||
resourceId: resource.id,
|
resourceId: resource.id,
|
||||||
accountPath: `${folderPath}/${account.name}`
|
accountPath: path.join(folderPath, account.name)
|
||||||
};
|
};
|
||||||
|
|
||||||
const canAccess = await fac.canAccess(approvalRequestGrantsDAL, resource.projectId, actor.id, inputs);
|
const canAccess = await fac.canAccess(approvalRequestGrantsDAL, resource.projectId, actor.id, inputs);
|
||||||
|
|||||||
Reference in New Issue
Block a user