From 7aeb82ea7e5bf5291066c8382f349cea9eaaefb8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 19 Nov 2021 08:33:18 +0100 Subject: Don't manage remote video files --- client/src/app/shared/shared-main/video/video.model.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/src/app/shared/shared-main/video/video.model.ts b/client/src/app/shared/shared-main/video/video.model.ts index eefa90489..fe5643688 100644 --- a/client/src/app/shared/shared-main/video/video.model.ts +++ b/client/src/app/shared/shared-main/video/video.model.ts @@ -221,14 +221,16 @@ export class Video implements VideoServerModel { } canRemoveFiles (user: AuthUser) { - return user.hasRight(UserRight.MANAGE_VIDEO_FILES) && + return this.isLocal && + user.hasRight(UserRight.MANAGE_VIDEO_FILES) && this.state.id !== VideoState.TO_TRANSCODE && this.hasHLS() && this.hasWebTorrent() } canRunTranscoding (user: AuthUser) { - return user.hasRight(UserRight.RUN_VIDEO_TRANSCODING) && + return this.isLocal && + user.hasRight(UserRight.RUN_VIDEO_TRANSCODING) && this.state.id !== VideoState.TO_TRANSCODE } -- cgit v1.2.3