Browse Source

fix: add authguard to controller

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
e69597cc3f
  1. 13
      packages/nocodb-nest/src/modules/org-users/org-users.controller.ts

13
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) {}

Loading…
Cancel
Save