diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-15 10:49:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-15 14:39:52 +0200 |
commit | 1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a (patch) | |
tree | 91a10310cdf924779527525d39f8eb7e09e4ba49 /shared/models/users/user.model.ts | |
parent | 31b48aad478506d4214586f02792816efa968e4b (diff) | |
download | PeerTube-1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a.tar.gz PeerTube-1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a.tar.zst PeerTube-1eddc9a74f9a80fa5d0cb25fceb3fc47a1a3c14a.zip |
Add user adminFlags
Diffstat (limited to 'shared/models/users/user.model.ts')
-rw-r--r-- | shared/models/users/user.model.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index af783d389..2f6a3c719 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -3,6 +3,7 @@ import { VideoChannel } from '../videos/channel/video-channel.model' | |||
3 | import { UserRole } from './user-role' | 3 | import { UserRole } from './user-role' |
4 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | 4 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
5 | import { UserNotificationSetting } from './user-notification-setting.model' | 5 | import { UserNotificationSetting } from './user-notification-setting.model' |
6 | import { UserAdminFlag } from './user-flag.model' | ||
6 | 7 | ||
7 | export interface User { | 8 | export interface User { |
8 | id: number | 9 | id: number |
@@ -11,11 +12,15 @@ export interface User { | |||
11 | emailVerified: boolean | 12 | emailVerified: boolean |
12 | nsfwPolicy: NSFWPolicyType | 13 | nsfwPolicy: NSFWPolicyType |
13 | 14 | ||
15 | adminFlags?: UserAdminFlag | ||
16 | |||
14 | autoPlayVideo: boolean | 17 | autoPlayVideo: boolean |
15 | webTorrentEnabled: boolean | 18 | webTorrentEnabled: boolean |
16 | videosHistoryEnabled: boolean | 19 | videosHistoryEnabled: boolean |
17 | 20 | ||
18 | role: UserRole | 21 | role: UserRole |
22 | roleLabel: string | ||
23 | |||
19 | videoQuota: number | 24 | videoQuota: number |
20 | videoQuotaDaily: number | 25 | videoQuotaDaily: number |
21 | createdAt: Date | 26 | createdAt: Date |