mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge branch 'master' into PHRAS-2719_Edit_form_unable_to_select_value_in_mutivalue_field
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