From: Guillaume Pellerin Date: Fri, 12 Apr 2013 12:55:52 +0000 (+0200) Subject: authorized video download to perms.telemeta.can_play_all_items X-Git-Tag: 1.1~613 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0ef6dd10cf9bdf0cd1ac9555dfd944175c551bb6;p=teleforma.git authorized video download to perms.telemeta.can_play_all_items --- diff --git a/teleforma/templates/teleforma/course_media.html b/teleforma/templates/teleforma/course_media.html index 446cc2aa..19795c11 100644 --- a/teleforma/templates/teleforma/course_media.html +++ b/teleforma/templates/teleforma/course_media.html @@ -58,10 +58,12 @@ $(document).ready(function(){ {% endblock extra_javascript %} {% block module-action %} -{% if media.item.file and media.is_published and not "video" in media.mime_type %} -
- {% trans "Download" %} -
+{% if media.item.file and media.is_published %} + {% if not "video" in media.mime_type or perms.telemeta.can_play_all_items %} +
+  {% trans "Download" %} +
+ {% endif %} {% endif %} {% endblock module-action %}