From 961cbe4269e5f34639e29310fb3d90a6cb1bd6bc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Apr 2022 09:50:20 +0200 Subject: Fix getting live by anonymous user --- shared/models/users/user-right.enum.ts | 56 +++++++++++++-------------- shared/models/videos/live/live-video.model.ts | 8 ++-- 2 files changed, 32 insertions(+), 32 deletions(-) (limited to 'shared') 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 @@ export const enum UserRight { - ALL, + ALL = 0, - MANAGE_USERS, + MANAGE_USERS = 1, - MANAGE_SERVER_FOLLOW, + MANAGE_SERVER_FOLLOW = 2, - MANAGE_LOGS, + MANAGE_LOGS = 3, - MANAGE_DEBUG, + MANAGE_DEBUG = 4, - MANAGE_SERVER_REDUNDANCY, + MANAGE_SERVER_REDUNDANCY = 5, - MANAGE_ABUSES, + MANAGE_ABUSES = 6, - MANAGE_JOBS, + MANAGE_JOBS = 7, - MANAGE_CONFIGURATION, - MANAGE_INSTANCE_CUSTOM_PAGE, + MANAGE_CONFIGURATION = 8, + MANAGE_INSTANCE_CUSTOM_PAGE = 9, - MANAGE_ACCOUNTS_BLOCKLIST, - MANAGE_SERVERS_BLOCKLIST, + MANAGE_ACCOUNTS_BLOCKLIST = 10, + MANAGE_SERVERS_BLOCKLIST = 11, - MANAGE_VIDEO_BLACKLIST, - MANAGE_ANY_VIDEO_CHANNEL, + MANAGE_VIDEO_BLACKLIST = 12, + MANAGE_ANY_VIDEO_CHANNEL = 13, - REMOVE_ANY_VIDEO, - REMOVE_ANY_VIDEO_PLAYLIST, - REMOVE_ANY_VIDEO_COMMENT, + REMOVE_ANY_VIDEO = 14, + REMOVE_ANY_VIDEO_PLAYLIST = 15, + REMOVE_ANY_VIDEO_COMMENT = 16, - UPDATE_ANY_VIDEO, - UPDATE_ANY_VIDEO_PLAYLIST, + UPDATE_ANY_VIDEO = 17, + UPDATE_ANY_VIDEO_PLAYLIST = 18, - GET_ANY_LIVE, - SEE_ALL_VIDEOS, - SEE_ALL_COMMENTS, - CHANGE_VIDEO_OWNERSHIP, + GET_ANY_LIVE = 19, + SEE_ALL_VIDEOS = 20, + SEE_ALL_COMMENTS = 21, + CHANGE_VIDEO_OWNERSHIP = 22, - MANAGE_PLUGINS, + MANAGE_PLUGINS = 23, - MANAGE_VIDEOS_REDUNDANCIES, + MANAGE_VIDEOS_REDUNDANCIES = 24, - MANAGE_VIDEO_FILES, - RUN_VIDEO_TRANSCODING, + MANAGE_VIDEO_FILES = 25, + RUN_VIDEO_TRANSCODING = 26, - MANAGE_VIDEO_IMPORTS + MANAGE_VIDEO_IMPORTS = 27 } 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 @@ import { LiveVideoLatencyMode } from './live-video-latency-mode.enum' export interface LiveVideo { - rtmpUrl: string - rtmpsUrl: string - - streamKey: string + // If owner + rtmpUrl?: string + rtmpsUrl?: string + streamKey?: string saveReplay: boolean permanentLive: boolean -- cgit v1.2.3