61dd667a71 changed source->hasSource, fix in js too

This commit is contained in:
j 2025-12-03 11:49:32 +01:00
commit 31b98d0707
3 changed files with 4 additions and 2 deletions

View file

@ -980,6 +980,8 @@ def download_source(request, id, part=None):
item = get_object_or_404(models.Item, public_id=id)
if not item.access(request.user):
return HttpResponseForbidden()
if not has_capability(request.user, 'canDownloadSource'):
return HttpResponseForbidden()
if part:
part = int(part) - 1
else:

View file

@ -192,7 +192,7 @@ pandora.ui.editor = function(data) {
pandora.ui.downloadVideoDialog({
item: ui.item,
rightsLevel: rightsLevel,
source: data.source && pandora.hasCapability('canDownloadSource'),
source: data.hasSource && pandora.hasCapability('canDownloadSource'),
title: data.title,
video: data.video
}).open();

View file

@ -2448,7 +2448,7 @@ pandora.VIDEO_OPTIONS_KEYS = [
'rendered',
'rightslevel',
'size',
'source',
'hasSource',
'streams',
'title',
'videoRatio'