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)
|
||||
if not item.access(request.user):
|
||||
return HttpResponseForbidden()
|
||||
if not has_capability(request.user, 'canDownloadSource'):
|
||||
return HttpResponseForbidden()
|
||||
if part:
|
||||
part = int(part) - 1
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -2448,7 +2448,7 @@ pandora.VIDEO_OPTIONS_KEYS = [
|
|||
'rendered',
|
||||
'rightslevel',
|
||||
'size',
|
||||
'source',
|
||||
'hasSource',
|
||||
'streams',
|
||||
'title',
|
||||
'videoRatio'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue