Don't manage remote video files

This commit is contained in:
Chocobozzz 2021-11-19 08:33:18 +01:00
parent 5d3c5f2797
commit 7aeb82ea7e
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 2 deletions

View File

@ -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
}