Chore: Moved verifyApprovers

This commit is contained in:
Daniel Hougaard
2024-05-07 17:30:36 +02:00
parent af0d31db2c
commit a579598b6d
@@ -54,7 +54,6 @@ export const accessApprovalPolicyServiceFactory = ({
if (approvals > approvers.length) if (approvals > approvers.length)
throw new BadRequestError({ message: "Approvals cannot be greater than approvers" }); throw new BadRequestError({ message: "Approvals cannot be greater than approvers" });
if (!secretPath) throw new BadRequestError({ message: "Secret path is required" });
const { permission } = await permissionService.getProjectPermission( const { permission } = await permissionService.getProjectPermission(
actor, actor,