From bef6f76c192b9d63806613e7499f83dfaef9bd13 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 17 Sep 2015 11:54:05 +0200 Subject: [PATCH] no downloads for users --- teleforma/templates/teleforma/seminar_media_audio.html | 2 +- teleforma/templates/teleforma/seminar_media_video.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" %}
-- 2.39.5