downloadble fix
This commit is contained in:
1 parent
b02ded982c
commit
1a1f4301cf
1 file changed
+3
@@ -156,6 +156,9 @@ async def s_api_v1_content_view(request, content_address: str):
|
|||||||
|
|
||||||
display_options['metadata'] = content_metadata_json
|
display_options['metadata'] = content_metadata_json
|
||||||
opts['downloadable'] = content_metadata_json.get('downloadable', False)
|
opts['downloadable'] = content_metadata_json.get('downloadable', False)
|
||||||
|
if opts['downloadable']:
|
||||||
|
if not ('listen' in opts['have_licenses']):
|
||||||
|
opts['downloadable'] = False
|
||||||
|
|
||||||
return response.json({
|
return response.json({
|
||||||
**opts,
|
**opts,
|
||||||
|
|||||||
Reference in new issue
Block a user