diff options
author | Chocobozzz <me@florianbigard.com> | 2022-04-22 09:50:20 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-04-22 09:50:20 +0200 |
commit | 961cbe4269e5f34639e29310fb3d90a6cb1bd6bc (patch) | |
tree | 06404c72c25a95238e7ef8a6bdfcb90d40c8649c /shared/models | |
parent | 4ec52d04dcc5d664612331f8e08d7d90da990415 (diff) | |
download | PeerTube-961cbe4269e5f34639e29310fb3d90a6cb1bd6bc.tar.gz PeerTube-961cbe4269e5f34639e29310fb3d90a6cb1bd6bc.tar.zst PeerTube-961cbe4269e5f34639e29310fb3d90a6cb1bd6bc.zip |
Fix getting live by anonymous user
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/users/user-right.enum.ts | 56 | ||||
-rw-r--r-- | shared/models/videos/live/live-video.model.ts | 8 |
2 files changed, 32 insertions, 32 deletions
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index d3f793d8b..9c6828aa5 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts | |||
@@ -1,47 +1,47 @@ | |||
1 | export const enum UserRight { | 1 | export const enum UserRight { |
2 | ALL, | 2 | ALL = 0, |
3 | 3 | ||
4 | MANAGE_USERS, | 4 | MANAGE_USERS = 1, |
5 | 5 | ||
6 | MANAGE_SERVER_FOLLOW, | 6 | MANAGE_SERVER_FOLLOW = 2, |
7 | 7 | ||
8 | MANAGE_LOGS, | 8 | MANAGE_LOGS = 3, |
9 | 9 | ||
10 | MANAGE_DEBUG, | 10 | MANAGE_DEBUG = 4, |
11 | 11 | ||
12 | MANAGE_SERVER_REDUNDANCY, | 12 | MANAGE_SERVER_REDUNDANCY = 5, |
13 | 13 | ||
14 | MANAGE_ABUSES, | 14 | MANAGE_ABUSES = 6, |
15 | 15 | ||
16 | MANAGE_JOBS, | 16 | MANAGE_JOBS = 7, |
17 | 17 | ||
18 | MANAGE_CONFIGURATION, | 18 | MANAGE_CONFIGURATION = 8, |
19 | MANAGE_INSTANCE_CUSTOM_PAGE, | 19 | MANAGE_INSTANCE_CUSTOM_PAGE = 9, |
20 | 20 | ||
21 | MANAGE_ACCOUNTS_BLOCKLIST, | 21 | MANAGE_ACCOUNTS_BLOCKLIST = 10, |
22 | MANAGE_SERVERS_BLOCKLIST, | 22 | MANAGE_SERVERS_BLOCKLIST = 11, |
23 | 23 | ||
24 | MANAGE_VIDEO_BLACKLIST, | 24 | MANAGE_VIDEO_BLACKLIST = 12, |
25 | MANAGE_ANY_VIDEO_CHANNEL, | 25 | MANAGE_ANY_VIDEO_CHANNEL = 13, |
26 | 26 | ||
27 | REMOVE_ANY_VIDEO, | 27 | REMOVE_ANY_VIDEO = 14, |
28 | REMOVE_ANY_VIDEO_PLAYLIST, | 28 | REMOVE_ANY_VIDEO_PLAYLIST = 15, |
29 | REMOVE_ANY_VIDEO_COMMENT, | 29 | REMOVE_ANY_VIDEO_COMMENT = 16, |
30 | 30 | ||
31 | UPDATE_ANY_VIDEO, | 31 | UPDATE_ANY_VIDEO = 17, |
32 | UPDATE_ANY_VIDEO_PLAYLIST, | 32 | UPDATE_ANY_VIDEO_PLAYLIST = 18, |
33 | 33 | ||
34 | GET_ANY_LIVE, | 34 | GET_ANY_LIVE = 19, |
35 | SEE_ALL_VIDEOS, | 35 | SEE_ALL_VIDEOS = 20, |
36 | SEE_ALL_COMMENTS, | 36 | SEE_ALL_COMMENTS = 21, |
37 | CHANGE_VIDEO_OWNERSHIP, | 37 | CHANGE_VIDEO_OWNERSHIP = 22, |
38 | 38 | ||
39 | MANAGE_PLUGINS, | 39 | MANAGE_PLUGINS = 23, |
40 | 40 | ||
41 | MANAGE_VIDEOS_REDUNDANCIES, | 41 | MANAGE_VIDEOS_REDUNDANCIES = 24, |
42 | 42 | ||
43 | MANAGE_VIDEO_FILES, | 43 | MANAGE_VIDEO_FILES = 25, |
44 | RUN_VIDEO_TRANSCODING, | 44 | RUN_VIDEO_TRANSCODING = 26, |
45 | 45 | ||
46 | MANAGE_VIDEO_IMPORTS | 46 | MANAGE_VIDEO_IMPORTS = 27 |
47 | } | 47 | } |
diff --git a/shared/models/videos/live/live-video.model.ts b/shared/models/videos/live/live-video.model.ts index 2d3169941..d0f57f883 100644 --- a/shared/models/videos/live/live-video.model.ts +++ b/shared/models/videos/live/live-video.model.ts | |||
@@ -1,10 +1,10 @@ | |||
1 | import { LiveVideoLatencyMode } from './live-video-latency-mode.enum' | 1 | import { LiveVideoLatencyMode } from './live-video-latency-mode.enum' |
2 | 2 | ||
3 | export interface LiveVideo { | 3 | export interface LiveVideo { |
4 | rtmpUrl: string | 4 | // If owner |
5 | rtmpsUrl: string | 5 | rtmpUrl?: string |
6 | 6 | rtmpsUrl?: string | |
7 | streamKey: string | 7 | streamKey?: string |
8 | 8 | ||
9 | saveReplay: boolean | 9 | saveReplay: boolean |
10 | permanentLive: boolean | 10 | permanentLive: boolean |