From 2e6b3662af157aa1992dd6a5514ed3ad3fe37f9c Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Sun, 1 Feb 2026 00:59:26 +0530 Subject: [PATCH] feat: Allow users to delete uploaded files in addition to agents and admins. --- src/upload/upload.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload/upload.controller.ts b/src/upload/upload.controller.ts index 4b72dcb..77cf26f 100644 --- a/src/upload/upload.controller.ts +++ b/src/upload/upload.controller.ts @@ -110,7 +110,7 @@ export class UploadController { @Delete(':key') @UseGuards(JwtAuthGuard, RolesGuard) - @Roles(UserRole.AGENT, UserRole.ADMIN) + @Roles(UserRole.AGENT, UserRole.ADMIN, UserRole.USER) @ApiBearerAuth() @ApiOperation({ summary: 'Delete an uploaded file' }) @ApiResponse({ status: 200, description: 'File deleted successfully' })