switch getSapOfFolder to check for secrets instead of approval

This commit is contained in:
Maidul Islam
2024-01-27 12:38:23 +05:30
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);
};