mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36: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')
|
@Delete(':noteIdOrAlias/revisions')
|
||||||
@OpenApi(204, 404)
|
@OpenApi(204, 404)
|
||||||
@Permissions(Permission.READ)
|
@Permissions(Permission.OWNER)
|
||||||
@UseInterceptors(GetNoteInterceptor)
|
@UseInterceptors(GetNoteInterceptor)
|
||||||
async purgeNoteRevisions(
|
async purgeNoteRevisions(
|
||||||
@RequestUser() user: User,
|
@RequestUser() user: User,
|
||||||
|
|
Loading…
Reference in a new issue