mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
fix(note): permissions of purgeNoteRevisions
This should only be allowed to be done by owners. Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
9bf85a671d
commit
50ea4b5877
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ export class NotesController {
|
|||
|
||||
@Delete(':noteIdOrAlias/revisions')
|
||||
@OpenApi(204, 404)
|
||||
@Permissions(Permission.READ)
|
||||
@Permissions(Permission.OWNER)
|
||||
@UseInterceptors(GetNoteInterceptor)
|
||||
async purgeNoteRevisions(
|
||||
@RequestUser() user: User,
|
||||
|
|
Loading…
Reference in a new issue