aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-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