From: Guillaume Pellerin Date: Thu, 17 Sep 2015 09:54:05 +0000 (+0200) Subject: no downloads for users X-Git-Tag: 2.8.1-pro~280 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=bef6f76c192b9d63806613e7499f83dfaef9bd13;p=teleforma.git no downloads for users --- diff --git a/teleforma/templates/teleforma/seminar_media_audio.html b/teleforma/templates/teleforma/seminar_media_audio.html index 9145d5d3..1fe9ebb1 100644 --- a/teleforma/templates/teleforma/seminar_media_audio.html +++ b/teleforma/templates/teleforma/seminar_media_audio.html @@ -126,7 +126,7 @@ $(document).ready(function(){ {% endblock index %} {% block module-action-right %} -{% if media.item.file and media.is_published and media.item.file.path|in_download_formats %} +{% if media.item.file and media.is_published and media.item.file.path|in_download_formats and user.is_superuser %}
 {% trans "Download" %}
diff --git a/teleforma/templates/teleforma/seminar_media_video.html b/teleforma/templates/teleforma/seminar_media_video.html index 0cb7dd16..057bdad5 100644 --- a/teleforma/templates/teleforma/seminar_media_video.html +++ b/teleforma/templates/teleforma/seminar_media_video.html @@ -177,7 +177,7 @@ $(document).ready(function(){ {% endblock index %} {% block module-action-right %} -{% if media.item.file and media.is_published and media.item.file.path|in_download_formats %} +{% if media.item.file and media.is_published and media.item.file.path|in_download_formats and user.is_superuser %}
 {% trans "Download" %}