From a5ffbb6e7f365854e67f82ec2a1d2fb837d36f92 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Mon, 27 Jul 2020 22:38:46 +0200 Subject: [PATCH] Add 'special' property to GroupInfoDto and rename 'id' to 'name' Signed-off-by: David Mehren --- src/notes/note-permissions.dto.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/notes/note-permissions.dto.ts b/src/notes/note-permissions.dto.ts index 4f35fe169..8df0aa894 100644 --- a/src/notes/note-permissions.dto.ts +++ b/src/notes/note-permissions.dto.ts @@ -17,16 +17,18 @@ export class NotePermissionEntryUpdateDto { export class GroupInfoDto { @IsString() - id: string + name: string; @IsString() - displayName: string + displayName: string; + @IsBoolean() + special: boolean; } export class NoteGroupPermissionEntryDto { @ValidateNested() - group: GroupInfoDto + group: GroupInfoDto; @IsBoolean() - canEdit: boolean + canEdit: boolean; } export class NotePermissionsDto {