aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-19 08:33:18 +0100
committerChocobozzz <me@florianbigard.com>2021-11-19 08:33:18 +0100
commit7aeb82ea7e5bf5291066c8382f349cea9eaaefb8 (patch)
tree056982836dd5cdf8cab2a76dcb8e25ed0404a2cf
parent5d3c5f27977bf8d690a606c65a0f8ce11f4341ed (diff)
downloadPeerTube-7aeb82ea7e5bf5291066c8382f349cea9eaaefb8.tar.gz
PeerTube-7aeb82ea7e5bf5291066c8382f349cea9eaaefb8.tar.zst
PeerTube-7aeb82ea7e5bf5291066c8382f349cea9eaaefb8.zip
Don't manage remote video files
-rw-r--r--client/src/app/shared/shared-main/video/video.model.ts6
1 files changed, 4 insertions, 2 deletions
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 {
221 } 221 }
222 222
223 canRemoveFiles (user: AuthUser) { 223 canRemoveFiles (user: AuthUser) {
224 return user.hasRight(UserRight.MANAGE_VIDEO_FILES) && 224 return this.isLocal &&
225 user.hasRight(UserRight.MANAGE_VIDEO_FILES) &&
225 this.state.id !== VideoState.TO_TRANSCODE && 226 this.state.id !== VideoState.TO_TRANSCODE &&
226 this.hasHLS() && 227 this.hasHLS() &&
227 this.hasWebTorrent() 228 this.hasWebTorrent()
228 } 229 }
229 230
230 canRunTranscoding (user: AuthUser) { 231 canRunTranscoding (user: AuthUser) {
231 return user.hasRight(UserRight.RUN_VIDEO_TRANSCODING) && 232 return this.isLocal &&
233 user.hasRight(UserRight.RUN_VIDEO_TRANSCODING) &&
232 this.state.id !== VideoState.TO_TRANSCODE 234 this.state.id !== VideoState.TO_TRANSCODE
233 } 235 }
234 236