From 4260da30b7f2bd73e3726058cbee8ec8f644723f Mon Sep 17 00:00:00 2001 From: Mayank Mishra Date: Tue, 28 Oct 2025 12:17:35 +0530 Subject: [PATCH] commented authorization code --- src/modules/blog/controllers/blogs.controller.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/blog/controllers/blogs.controller.ts b/src/modules/blog/controllers/blogs.controller.ts index 4c133c8..1453388 100644 --- a/src/modules/blog/controllers/blogs.controller.ts +++ b/src/modules/blog/controllers/blogs.controller.ts @@ -81,13 +81,13 @@ export class BlogsController { } @Patch(':id') - @UseGuards(JwtAuthGuard, RolesGuard) - @Roles('ADMIN', 'HR') - @ApiBearerAuth() + // @UseGuards(JwtAuthGuard, RolesGuard) + // @Roles('ADMIN', 'HR') + // @ApiBearerAuth() @ApiOperation({ summary: 'Update blog post' }) @ApiResponse({ status: 200, description: 'Blog updated successfully', type: BlogResponseDto }) @ApiResponse({ status: 404, description: 'Blog not found' }) - @ApiResponse({ status: 401, description: 'Unauthorized' }) + // @ApiResponse({ status: 401, description: 'Unauthorized' }) @ApiResponse({ status: 403, description: 'Forbidden' }) async update( @Param('id', ParseIntPipe) id: number,