Cannot download a live

pull/6527/head
Chocobozzz 2024-07-31 08:21:09 +02:00
parent 015320aab2
commit 5f153b9d85
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 13 additions and 1 deletions

View File

@ -213,6 +213,8 @@ export class VideoActionsDropdownComponent implements OnChanges {
return this.video.canGenerateTranscription(this.user, this.serverService.getHTMLConfig().videoTranscription.enabled)
}
// ---------------------------------------------------------------------------
isVideoDownloadableByAnonymous () {
return (
this.video &&
@ -222,6 +224,16 @@ export class VideoActionsDropdownComponent implements OnChanges {
)
}
isVideoDownloadableByUser () {
return (
this.video &&
this.video.isLive !== true &&
this.video.isOwnerOrHasSeeAllVideosRight(this.user)
)
}
// ---------------------------------------------------------------------------
canVideoBeDuplicated () {
return !this.video.isLive && this.video.canBeDuplicatedBy(this.user)
}
@ -395,7 +407,7 @@ export class VideoActionsDropdownComponent implements OnChanges {
isDisplayed: () => {
if (!this.displayOptions.download) return false
return this.isVideoDownloadableByAnonymous() || this.video.isOwnerOrHasSeeAllVideosRight(this.user)
return this.isVideoDownloadableByAnonymous() || this.isVideoDownloadableByUser()
},
iconName: 'download',
ownerOrModeratorPrivilege: () => {