]> git.parisson.com Git - teleforma.git/commitdiff
avoid script download by corrector
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 28 Jun 2026 16:23:35 +0000 (18:23 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 28 Jun 2026 16:23:35 +0000 (18:23 +0200)
teleforma/exam/templates/exam/script_detail.html

index fa849d642ab03b5ef20e45d88d8f9fe5f8f4bfad..6e594b649e7119fdad1f1d7b9fe9047fef101a17 100644 (file)
@@ -45,7 +45,9 @@
     <a href="{% url 'teleforma-desk-period-course' period.id script.course.id %}">{{ script.title }}</a>
 
     <div style="float: right; font-size: 0.9em;">
-        <a href="{% url 'teleforma-exam-script-download' period.id script.id %}" class="component_icon button icon_download">Télécharger</a>
+        {% if not user.quotas.all %}
+            <a href="{% url 'teleforma-exam-script-download' period.id script.id %}" class="component_icon button icon_download">Télécharger</a>
+        {% endif %}
         {% if user.quotas.all %}
             <a href="{% url 'postman:write' script.author.username %}" class="component_icon button icon_next">{% trans "Send a message" %}</a>
         {% endif %}