Skip to content

Commit

Permalink
fix: enable guards
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TanHoang committed Oct 15, 2024
1 parent 5922fb8 commit 3063523
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/users/admin.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Body, Controller, Get, Param, Put, Query, UseGuards } from '@nestjs/com
import { AuthGuard } from '@nestjs/passport';
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';

import { GuardPublic } from '../../guards/guard.decorator.js';
import { AuthAdminGuard } from '../../shared/decorators/http.decorator.js';
import { UpdateCommonConfigBodyDto } from './dto/common-config-request.dto.js';
import { GetCommonConfigResponseDto } from './dto/common-config-response.dto.js';
Expand All @@ -23,8 +22,8 @@ export class AdminController {
}

@Get('common-config')
@GuardPublic()
// @UseGuards(AuthGuard('jwt'))
@AuthAdminGuard()
@UseGuards(AuthGuard('jwt'))
@ApiOkResponse({ type: GetCommonConfigResponseDto })
getCommonConfig() {
return this.userService.getCommonConfig();
Expand Down

0 comments on commit 3063523

Please sign in to comment.