mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
refactor(note-group-permission-entry-dto): do not embed Group objects
This is part of an effort to consistently not embed Group objects in API responses. Names are returned instead. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
13284b26cb
commit
b40b2e164f
3 changed files with 12 additions and 12 deletions
|
@ -52,11 +52,11 @@ export class NoteUserPermissionUpdateDto {
|
|||
|
||||
export class NoteGroupPermissionEntryDto {
|
||||
/**
|
||||
* Group this permission applies to
|
||||
* Name of the Group this permission applies to
|
||||
*/
|
||||
@ValidateNested()
|
||||
@ApiProperty({ type: GroupInfoDto })
|
||||
group: GroupInfoDto;
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
groupName: string;
|
||||
|
||||
/**
|
||||
* True if the group members are allowed to edit the note
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue