]> git.parisson.com Git - teleforma.git/commitdiff
no downloads for users
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 17 Sep 2015 09:54:05 +0000 (11:54 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 17 Sep 2015 09:54:05 +0000 (11:54 +0200)
teleforma/templates/teleforma/seminar_media_audio.html
teleforma/templates/teleforma/seminar_media_video.html

index 9145d5d374f0e6ff8bfcbf4c18c61d6c41d1f4bd..1fe9ebb1e5d2f132832f245f067d02e12a5d01cd 100644 (file)
@@ -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 %}
  <div class="module_action">
    <a href="{{ MEDIA_URL }}{{ media.item.transcoded.all.0.file }}" class="component_icon button" id="action_red"><img src="{{STATIC_URL}}teleforma/images/download_media.png" alt="" style="vertical-align:middle" />&nbsp;{% trans "Download" %}</a>
  </div>
index 0cb7dd16a97d86b7037df00cd464e78cd525efe6..057bdad56baeb69b733deca317adaa2a64a4698d 100644 (file)
@@ -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 %}
  <div class="module_action">
    <a href="{{ MEDIA_URL }}{{ media.item.file }}" class="component_icon button" id="action_red"><img src="{{STATIC_URL}}teleforma/images/download_media.png" alt="" style="vertical-align:middle" />&nbsp;{% trans "Download" %}</a>
  </div>