From 1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 Apr 2019 10:49:46 +0200 Subject: Add user adminFlags --- client/src/app/shared/users/user.model.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/users/user.model.ts') diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index c15f1de8c..e3ed2dfbd 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts @@ -2,15 +2,18 @@ import { hasUserRight, User as UserServerModel, UserNotificationSetting, UserRig import { NSFWPolicyType } from '../../../../../shared/models/videos/nsfw-policy.type' import { Account } from '@app/shared/account/account.model' import { Avatar } from '../../../../../shared/models/avatars/avatar.model' +import { UserAdminFlag } from '@shared/models/users/user-flag.model' export class User implements UserServerModel { id: number username: string email: string emailVerified: boolean - role: UserRole nsfwPolicy: NSFWPolicyType + role: UserRole + roleLabel: string + webTorrentEnabled: boolean autoPlayVideo: boolean videosHistoryEnabled: boolean @@ -21,6 +24,8 @@ export class User implements UserServerModel { videoChannels: VideoChannel[] createdAt: Date + adminFlags?: UserAdminFlag + blocked: boolean blockedReason?: string @@ -30,6 +35,7 @@ export class User implements UserServerModel { this.id = hash.id this.username = hash.username this.email = hash.email + this.role = hash.role this.videoChannels = hash.videoChannels @@ -40,6 +46,9 @@ export class User implements UserServerModel { this.videosHistoryEnabled = hash.videosHistoryEnabled this.autoPlayVideo = hash.autoPlayVideo this.createdAt = hash.createdAt + + this.adminFlags = hash.adminFlags + this.blocked = hash.blocked this.blockedReason = hash.blockedReason -- cgit v1.2.3