From 24081f09f82778ef63751e0b7a4dd1c212ad77eb Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 17 Jan 2024 06:14:04 +0000 Subject: [PATCH] fix: typo correction - missing opening brace --- .../src/middlewares/extract-ids/extract-ids.middleware.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nocodb/src/middlewares/extract-ids/extract-ids.middleware.ts b/packages/nocodb/src/middlewares/extract-ids/extract-ids.middleware.ts index 547537bd9f..34ac965b02 100644 --- a/packages/nocodb/src/middlewares/extract-ids/extract-ids.middleware.ts +++ b/packages/nocodb/src/middlewares/extract-ids/extract-ids.middleware.ts @@ -216,7 +216,6 @@ export class AclMiddleware implements NestInterceptor { const req = context.switchToHttp().getRequest(); - if (!req.user?.isAuthorized) { NcError.unauthorized('Invalid token'); } @@ -226,7 +225,7 @@ export class AclMiddleware implements NestInterceptor { ? OrgUserRoles.SUPER_ADMIN : getUserRoleForScope(req.user, scope); - if (!userScopeRole) + if (!userScopeRole) { NcError.forbidden("You don't have permission to access this resource"); }