]> git.parisson.com Git - teleforma.git/commitdiff
don't show medias for correctors
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 27 Jun 2014 10:17:46 +0000 (12:17 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 27 Jun 2014 10:17:46 +0000 (12:17 +0200)
teleforma/templates/teleforma/course_detail.html

index cbb412055eea964c43b24cc9a871d5ff0e4595f4..07ae0873dcaa061dfb2ec015bf18637615869414 100644 (file)
@@ -26,6 +26,7 @@ $(document).ready(function(){
         <div class="course_title">{{ course.title }} - {{ type }}{% if course.description %} - {{ course.description }}{% endif %}
         </div>
 
+        {% if not user.correctors.all or user.is_staff %}
         {% block conference %}
          {% include "teleforma/inc/conference_list.html" %}
         {% endblock %}
@@ -33,6 +34,7 @@ $(document).ready(function(){
         {% block media %}
          {% include "teleforma/inc/media_list.html" %}
         {% endblock %}
+        {% endif %}
 
         {% block document %}
          {% with forloop.counter as type_counter %}