From 4d679c7300be1b5c60ed355df95cc6b874be4442 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Sun, 2 Jun 2024 23:12:25 +0300 Subject: [PATCH] Refactor authentication guard in UnitController's addUserUnit method --- src/unit/controllers/unit.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit/controllers/unit.controller.ts b/src/unit/controllers/unit.controller.ts index 5c55bc7..eedf62d 100644 --- a/src/unit/controllers/unit.controller.ts +++ b/src/unit/controllers/unit.controller.ts @@ -100,7 +100,7 @@ export class UnitController { } } @ApiBearerAuth() - @UseGuards(AdminRoleGuard, CheckUserUnitGuard) + @UseGuards(JwtAuthGuard, CheckUserUnitGuard) @Post('user') async addUserUnit(@Body() addUserUnitDto: AddUserUnitDto) { try {