]> git.0d.be Git - panikdb.git/commitdiff
allow removal of scheduled diffusions
authorFrédéric Péters <fpeters@0d.be>
Wed, 20 Jan 2021 13:24:54 +0000 (14:24 +0100)
committerFrédéric Péters <fpeters@0d.be>
Wed, 20 Jan 2021 13:26:40 +0000 (14:26 +0100)
panikdb/templates/emissions/episode_detail.html

index 078f7d94b627a817d8d3b433f7b19d48be1308ca..f96a0ec4e62d7aa3ab2bd03bb06334e7728d6772 100644 (file)
@@ -79,8 +79,9 @@ Tags :
     <a href="{% url 'nonstop-del-diffusion' pk=diffusion.id %}">[supprimer stream]</a>
     {% endif %}
   {% endif %}
-  {# removal limited to staff as this will not remove from soma #}
-  {% if user.is_staff %}<a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>{% endif %}
+  {% if can_manage %}
+  <a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>
+  {% endif %}
 {% elif can_manage %}
   {% if has_soma and diffusion.datetime|date:"Y-m-d H:i" > s_now %}
     {% if soundfiles|integral %}