From 387d4b149a2c2050a85f9951a583ccc7eaa877ef Mon Sep 17 00:00:00 2001 From: DJensen94 <79864006+DJensen94@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:14:52 -0400 Subject: [PATCH] Revert "Filter domains that don't belong to cidrs" --- backend/src/tasks/flagFloatingIps.ts | 2 +- backend/src/tasks/helpers/checkIpInCidr.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/tasks/flagFloatingIps.ts b/backend/src/tasks/flagFloatingIps.ts index baab3bc1..e09b655d 100644 --- a/backend/src/tasks/flagFloatingIps.ts +++ b/backend/src/tasks/flagFloatingIps.ts @@ -25,4 +25,4 @@ export const handler = async (commandOptions: CommandOptions) => { } } } -}; +}; \ No newline at end of file diff --git a/backend/src/tasks/helpers/checkIpInCidr.ts b/backend/src/tasks/helpers/checkIpInCidr.ts index 2f7683ea..2101abb3 100644 --- a/backend/src/tasks/helpers/checkIpInCidr.ts +++ b/backend/src/tasks/helpers/checkIpInCidr.ts @@ -32,7 +32,7 @@ export default async ( where: { id: org.parent.id }, relations: ['sectors'] }); - + return parentOrg ? await isOrganizationExecutive(parentOrg) : false; } return false;