From 2eadc2e776cf3a935f9086a46786dfa23451c831 Mon Sep 17 00:00:00 2001 From: gengminy Date: Tue, 9 Aug 2022 23:35:10 +0900 Subject: [PATCH] =?UTF-8?q?:hammer:=20fix(ticket):=20=ED=8B=B0=EC=BC=93=20?= =?UTF-8?q?=EC=A0=95=EC=B1=85=20=EC=88=98=EC=A0=95=20#126?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tickets/tickets.controller.ts | 9 +++++---- src/tickets/tickets.service.ts | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/tickets/tickets.controller.ts b/src/tickets/tickets.controller.ts index c48c69c..f3c5156 100644 --- a/src/tickets/tickets.controller.ts +++ b/src/tickets/tickets.controller.ts @@ -168,10 +168,11 @@ export class TicketsController { description: '요청 성공시', type: Ticket }) - @ApiUnauthorizedResponse({ - status: 401, - description: 'AccessToken 권한이 없을 경우' - }) + // @ApiUnauthorizedResponse({ + // status: 401, + // description: 'AccessToken 권한이 없을 경우' + // }) + @NoAuth() @Get('/:uuid') getTicketByUuid( @Param('uuid') diff --git a/src/tickets/tickets.service.ts b/src/tickets/tickets.service.ts index 5607868..c3107df 100644 --- a/src/tickets/tickets.service.ts +++ b/src/tickets/tickets.service.ts @@ -50,9 +50,9 @@ export class TicketsService { const ticket = await this.ticketRepository.findByUuid(ticketUuid); //어드민이거나 Ticket.user.id === user.id 일때만 리턴 - if (ticket.user.id !== user.id && user.role !== Role.Admin) { - throw new UnauthorizedException('해당 티켓에 대한 접근 권한이 없습니다'); - } + // if (ticket.user.id !== user.id && user.role !== Role.Admin) { + // throw new UnauthorizedException('해당 티켓에 대한 접근 권한이 없습니다'); + // } return ticket; }