diff options
Diffstat (limited to 'shared/models/users')
-rw-r--r-- | shared/models/users/index.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user-right.enum.ts | 2 | ||||
-rw-r--r-- | shared/models/users/user-role.ts | 2 | ||||
-rw-r--r-- | shared/models/users/user-update-me.model.ts | 3 | ||||
-rw-r--r-- | shared/models/users/user.model.ts | 4 |
5 files changed, 10 insertions, 2 deletions
diff --git a/shared/models/users/index.ts b/shared/models/users/index.ts index b61a8cd40..a24ffee96 100644 --- a/shared/models/users/index.ts +++ b/shared/models/users/index.ts | |||
@@ -8,6 +8,7 @@ export * from './user-refresh-token.model' | |||
8 | export * from './user-register.model' | 8 | export * from './user-register.model' |
9 | export * from './user-right.enum' | 9 | export * from './user-right.enum' |
10 | export * from './user-role' | 10 | export * from './user-role' |
11 | export * from './user-scoped-token' | ||
11 | export * from './user-update-me.model' | 12 | export * from './user-update-me.model' |
12 | export * from './user-update.model' | 13 | export * from './user-update.model' |
13 | export * from './user-video-quota.model' | 14 | export * from './user-video-quota.model' |
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index 6415ca6f2..668535f4e 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts | |||
@@ -22,9 +22,9 @@ export const enum UserRight { | |||
22 | MANAGE_SERVERS_BLOCKLIST, | 22 | MANAGE_SERVERS_BLOCKLIST, |
23 | 23 | ||
24 | MANAGE_VIDEO_BLACKLIST, | 24 | MANAGE_VIDEO_BLACKLIST, |
25 | MANAGE_ANY_VIDEO_CHANNEL, | ||
25 | 26 | ||
26 | REMOVE_ANY_VIDEO, | 27 | REMOVE_ANY_VIDEO, |
27 | REMOVE_ANY_VIDEO_CHANNEL, | ||
28 | REMOVE_ANY_VIDEO_PLAYLIST, | 28 | REMOVE_ANY_VIDEO_PLAYLIST, |
29 | REMOVE_ANY_VIDEO_COMMENT, | 29 | REMOVE_ANY_VIDEO_COMMENT, |
30 | 30 | ||
diff --git a/shared/models/users/user-role.ts b/shared/models/users/user-role.ts index 94413abca..687a2aa0d 100644 --- a/shared/models/users/user-role.ts +++ b/shared/models/users/user-role.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | // Keep the order | 1 | // Keep the order |
2 | export enum UserRole { | 2 | export const enum UserRole { |
3 | ADMINISTRATOR = 0, | 3 | ADMINISTRATOR = 0, |
4 | MODERATOR = 1, | 4 | MODERATOR = 1, |
5 | USER = 2 | 5 | USER = 2 |
diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts index 6d7df38fb..e664e44b5 100644 --- a/shared/models/users/user-update-me.model.ts +++ b/shared/models/users/user-update-me.model.ts | |||
@@ -5,7 +5,10 @@ export interface UserUpdateMe { | |||
5 | description?: string | 5 | description?: string |
6 | nsfwPolicy?: NSFWPolicyType | 6 | nsfwPolicy?: NSFWPolicyType |
7 | 7 | ||
8 | // FIXME: deprecated in favour of p2pEnabled in 4.1 | ||
8 | webTorrentEnabled?: boolean | 9 | webTorrentEnabled?: boolean |
10 | p2pEnabled?: boolean | ||
11 | |||
9 | autoPlayVideo?: boolean | 12 | autoPlayVideo?: boolean |
10 | autoPlayNextVideo?: boolean | 13 | autoPlayNextVideo?: boolean |
11 | autoPlayNextVideoPlaylist?: boolean | 14 | autoPlayNextVideoPlaylist?: boolean |
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 78870c556..63c5c8a92 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -20,7 +20,11 @@ export interface User { | |||
20 | autoPlayVideo: boolean | 20 | autoPlayVideo: boolean |
21 | autoPlayNextVideo: boolean | 21 | autoPlayNextVideo: boolean |
22 | autoPlayNextVideoPlaylist: boolean | 22 | autoPlayNextVideoPlaylist: boolean |
23 | |||
24 | // @deprecated in favour of p2pEnabled | ||
23 | webTorrentEnabled: boolean | 25 | webTorrentEnabled: boolean |
26 | p2pEnabled: boolean | ||
27 | |||
24 | videosHistoryEnabled: boolean | 28 | videosHistoryEnabled: boolean |
25 | videoLanguages: string[] | 29 | videoLanguages: string[] |
26 | 30 | ||