mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +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);
|
||||
ForbiddenError.from(permission).throwUnlessCan(
|
||||
ProjectPermissionActions.Read,
|
||||
ProjectPermissionSub.SecretApproval
|
||||
ProjectPermissionSub.Secrets
|
||||
);
|
||||
return getSapPolicy(projectId, environment, secretPath);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user