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 e0a6428c50..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,6 +216,10 @@ export class AclMiddleware implements NestInterceptor { const req = context.switchToHttp().getRequest(); + if (!req.user?.isAuthorized) { + NcError.unauthorized('Invalid token'); + } + const userScopeRole = req.user.roles?.[OrgUserRoles.SUPER_ADMIN] === true ? OrgUserRoles.SUPER_ADMIN