61dd667a71 changed source->hasSource, fix in js too
This commit is contained in:
parent
09d5c4ebca
commit
31b98d0707
3 changed files with 4 additions and 2 deletions
|
|
@ -980,6 +980,8 @@ def download_source(request, id, part=None):
|
||||||
item = get_object_or_404(models.Item, public_id=id)
|
item = get_object_or_404(models.Item, public_id=id)
|
||||||
if not item.access(request.user):
|
if not item.access(request.user):
|
||||||
return HttpResponseForbidden()
|
return HttpResponseForbidden()
|
||||||
|
if not has_capability(request.user, 'canDownloadSource'):
|
||||||
|
return HttpResponseForbidden()
|
||||||
if part:
|
if part:
|
||||||
part = int(part) - 1
|
part = int(part) - 1
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ pandora.ui.editor = function(data) {
|
||||||
pandora.ui.downloadVideoDialog({
|
pandora.ui.downloadVideoDialog({
|
||||||
item: ui.item,
|
item: ui.item,
|
||||||
rightsLevel: rightsLevel,
|
rightsLevel: rightsLevel,
|
||||||
source: data.source && pandora.hasCapability('canDownloadSource'),
|
source: data.hasSource && pandora.hasCapability('canDownloadSource'),
|
||||||
title: data.title,
|
title: data.title,
|
||||||
video: data.video
|
video: data.video
|
||||||
}).open();
|
}).open();
|
||||||
|
|
|
||||||
|
|
@ -2448,7 +2448,7 @@ pandora.VIDEO_OPTIONS_KEYS = [
|
||||||
'rendered',
|
'rendered',
|
||||||
'rightslevel',
|
'rightslevel',
|
||||||
'size',
|
'size',
|
||||||
'source',
|
'hasSource',
|
||||||
'streams',
|
'streams',
|
||||||
'title',
|
'title',
|
||||||
'videoRatio'
|
'videoRatio'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue