mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge pull request #3300 from alchemy-fr/PHRAS-2761-audio-file-preview-case
PHRAS-2671 #comment Merge Change behavior of preview display in audio file case Only the previous PR #3108 change the behavior for all kind of record (image video audio document)
This commit is contained in:
@@ -15,7 +15,11 @@
|
||||
|
||||
{% set previewHtml5 = null %}
|
||||
|
||||
{% if app.getAclForUser(app.getAuthenticatedUser()).has_access_to_subdef(record, 'preview') and record.has_preview == true %}
|
||||
{# first check if type audio and there is no preview , fallback to thumbnail #}
|
||||
|
||||
{% if app.getAclForUser(app.getAuthenticatedUser()).has_access_to_subdef(record, 'preview') and record.getType == 'audio' and record.has_preview == false %}
|
||||
{% set preview_obj = record.get_thumbnail() %}
|
||||
{% elseif app.getAclForUser(app.getAuthenticatedUser()).has_access_to_subdef(record, 'preview') %}
|
||||
{% set preview_obj = record.get_preview() %}
|
||||
{% else %}
|
||||
{% set preview_obj = record.get_thumbnail() %}
|
||||
|
Reference in New Issue
Block a user