mirror of https://github.com/Chocobozzz/PeerTube
Cannot download a live
parent
015320aab2
commit
5f153b9d85
|
@ -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: () => {
|
||||
|
|
Loading…
Reference in New Issue