mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
refactor(note-user-permission-entry-dto): do not embed User objects
This is part of an effort to consistently not embed User objects in API responses. Usernames are returned instead. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
b955faa983
commit
13284b26cb
3 changed files with 10 additions and 10 deletions
|
@ -17,11 +17,11 @@ import { UserInfoDto } from '../users/user-info.dto';
|
|||
|
||||
export class NoteUserPermissionEntryDto {
|
||||
/**
|
||||
* User this permission applies to
|
||||
* Username of the User this permission applies to
|
||||
*/
|
||||
@ValidateNested()
|
||||
@ApiProperty({ type: UserInfoDto })
|
||||
user: UserInfoDto;
|
||||
@IsString()
|
||||
@ApiProperty()
|
||||
username: string;
|
||||
|
||||
/**
|
||||
* True if the user is allowed to edit the note
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue