mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 17:26:07 +00:00
switch getSapOfFolder to check for secrets instead of approval
This commit is contained in:
committed by
Akhil Mohan
parent
fb79e9e6fb
commit
da4ae3c503
@@ -217,7 +217,7 @@ export const secretApprovalPolicyServiceFactory = ({
|
|||||||
const { permission } = await permissionService.getProjectPermission(actor, actorId, projectId);
|
const { permission } = await permissionService.getProjectPermission(actor, actorId, projectId);
|
||||||
ForbiddenError.from(permission).throwUnlessCan(
|
ForbiddenError.from(permission).throwUnlessCan(
|
||||||
ProjectPermissionActions.Read,
|
ProjectPermissionActions.Read,
|
||||||
ProjectPermissionSub.SecretApproval
|
ProjectPermissionSub.Secrets
|
||||||
);
|
);
|
||||||
return getSapPolicy(projectId, environment, secretPath);
|
return getSapPolicy(projectId, environment, secretPath);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user