diff --git a/packages/nocodb-nest/src/modules/org-users/org-users.controller.ts b/packages/nocodb-nest/src/modules/org-users/org-users.controller.ts index 1efa506019..7d0a94ac74 100644 --- a/packages/nocodb-nest/src/modules/org-users/org-users.controller.ts +++ b/packages/nocodb-nest/src/modules/org-users/org-users.controller.ts @@ -2,19 +2,26 @@ import { Body, Controller, Delete, - Get, HttpCode, + Get, + HttpCode, Param, Patch, Post, Request, -} from '@nestjs/common' + UseGuards, +} from '@nestjs/common'; +import { AuthGuard } from '@nestjs/passport'; import { OrgUserRoles } from 'nocodb-sdk'; import { PagedResponseImpl } from '../../helpers/PagedResponse'; -import { Acl } from '../../middlewares/extract-project-id/extract-project-id.middleware'; +import { + Acl, + ExtractProjectIdMiddleware, +} from '../../middlewares/extract-project-id/extract-project-id.middleware'; import { User } from '../../models'; import { OrgUsersService } from './org-users.service'; @Controller() +@UseGuards(ExtractProjectIdMiddleware, AuthGuard('jwt')) export class OrgUsersController { constructor(private readonly orgUsersService: OrgUsersService) {}