]> git.0d.be Git - panikdb.git/commitdiff
don't allow removing a diffusion that is scheduled in soma
authorFrédéric Péters <fpeters@0d.be>
Mon, 19 Aug 2019 14:08:43 +0000 (16:08 +0200)
committerFrédéric Péters <fpeters@0d.be>
Mon, 19 Aug 2019 14:08:43 +0000 (16:08 +0200)
panikdb/templates/emissions/episode_detail.html

index 9d3641fa54758b6f685200c369e94c58ceaa798f..95cc5b404c0f4e0184d9cf8e524385a094c61574 100644 (file)
@@ -64,7 +64,7 @@ Tags :
 <ul>
 {% for diffusion in diffusions %}
 <li>{{ diffusion.datetime }}
-{% if can_manage and perms.emissions.delete_diffusion %}
+{% if can_manage and perms.emissions.delete_diffusion and not diffusion|is_already_in_soma %}
 <a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>
 {% endif %}
 {% if soundfiles|integral and perms.nonstop.add_track and diffusion.datetime|date:"Y-m-d H:i" > now %}