From 22f0abbfbe85183e67b6b702d8909091a2bea255 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Sun, 14 May 2023 00:59:57 +0200 Subject: [PATCH] fix: remove redundant permission guard annotations Signed-off-by: Tilman Vatteroth --- backend/src/api/private/notes/notes.controller.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backend/src/api/private/notes/notes.controller.ts b/backend/src/api/private/notes/notes.controller.ts index 1286b983a..e791fdffb 100644 --- a/backend/src/api/private/notes/notes.controller.ts +++ b/backend/src/api/private/notes/notes.controller.ts @@ -200,7 +200,6 @@ export class NotesController { @OpenApi(200, 403, 404) @UseInterceptors(GetNoteInterceptor) @Permissions(Permission.OWNER) - @UseGuards(PermissionsGuard) async setUserPermission( @RequestUser() user: User, @RequestNote() note: Note, @@ -218,7 +217,6 @@ export class NotesController { @UseInterceptors(GetNoteInterceptor) @Permissions(Permission.OWNER) - @UseGuards(PermissionsGuard) @Delete(':noteIdOrAlias/metadata/permissions/users/:userName') async removeUserPermission( @RequestUser() user: User, @@ -244,7 +242,6 @@ export class NotesController { @UseInterceptors(GetNoteInterceptor) @Permissions(Permission.OWNER) - @UseGuards(PermissionsGuard) @Put(':noteIdOrAlias/metadata/permissions/groups/:groupName') async setGroupPermission( @RequestUser() user: User, @@ -280,7 +277,6 @@ export class NotesController { @UseInterceptors(GetNoteInterceptor) @Permissions(Permission.OWNER) - @UseGuards(PermissionsGuard) @Put(':noteIdOrAlias/metadata/permissions/owner') async changeOwner( @RequestUser() user: User,