From 66fea0722d27f10461bd0dcfc6dc8f2eadfd84aa Mon Sep 17 00:00:00 2001 From: marcos-silva-rodrigues Date: Fri, 11 Jul 2025 11:12:35 -0300 Subject: [PATCH] FEAT: enabled network check in app.dadosfera --- src/authentication/authentication.guard.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/authentication/authentication.guard.ts b/src/authentication/authentication.guard.ts index 108dce8..09f4845 100644 --- a/src/authentication/authentication.guard.ts +++ b/src/authentication/authentication.guard.ts @@ -121,10 +121,10 @@ export class AuthenticationGuard } // Bloquear o customer de acesso o maestro publico - // const hasNetworkPolicyModule = accessTokenPayload.customer_modules.includes('network-policy'); - // if (hasNetworkPolicyModule && DEDICATED_PROXY === '') { - // throw new ForbiddenException(); - // } + const hasNetworkPolicyModule = accessTokenPayload.customer_modules.includes('network-policy'); + if (hasNetworkPolicyModule && DEDICATED_PROXY === '') { + throw new ForbiddenException(ErrorCodes.AUTH.FORBIDDEN); + } request.accessTokenPayload = accessTokenPayload; request.user = {