mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-04 08:49:59 -04:00
chore: linting and build fixes
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
522d1758d8
commit
0a7501f6c8
4 changed files with 17 additions and 34 deletions
|
@ -202,6 +202,7 @@ export class NotesController {
|
|||
@RequestNoteId() noteId: number,
|
||||
@Param('username') username: NoteUserPermissionEntryDto['username'],
|
||||
): Promise<NotePermissionsDto> {
|
||||
// TODO Fix this removing wrong user permission!
|
||||
try {
|
||||
await this.permissionService.removeUserPermission(noteId, userId);
|
||||
return await this.noteService.toNotePermissionsDto(noteId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue