Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't manage remote video files

Chocobozzz7aeb82ea7e5b
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 eefa90489e..fe56436889 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
}