]> git.0d.be Git - panikdb.git/commitdiff
update stream schedule permission for renamed model
authorFrédéric Péters <fpeters@0d.be>
Sun, 11 Sep 2022 10:03:51 +0000 (12:03 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 11 Sep 2022 10:03:51 +0000 (12:03 +0200)
panikdb/templates/emissions/episode_detail.html

index 2f39a57313445dfdcf5cd19fce0a0f7407ceb8e5..f6dbf6fa13c2259692711943abc60bb01cb24f2f 100644 (file)
@@ -16,7 +16,7 @@
   {% if soundfiles|integral %}({% trans "scheduled for diffusion" %}){% else %}({% trans "stream scheduled for diffusion" %}){% endif %}
     {% if can_manage %}
       <a rel="popup" href="{% url 'nonstop-diffusion-properties' pk=diffusion.scheduleddiffusion_set.first.id %}">{% trans "[diffusion options]" %}</a>
-      {% if perms.nonstop.add_streameddiffusion and not soundfiles|integral and diffusion.end_datetime|date:"Y-m-d H:i" > s_now %}
+      {% if perms.nonstop.add_scheduleddiffusion and not soundfiles|integral and diffusion.end_datetime|date:"Y-m-d H:i" > s_now %}
       <a href="{% url 'nonstop-del-diffusion' pk=diffusion.id %}">{% trans "[remove stream]" %}</a>
       {% endif %}
     {% endif %}
@@ -25,7 +25,7 @@
       <a rel="popup" href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">{% trans "[schedule diffusion]" %}</a>
     {% endif %}
 
-    {% if perms.nonstop.add_streameddiffusion and diffusion.end_datetime|date:"Y-m-d H:i" > s_now %}
+    {% if perms.nonstop.add_scheduleddiffusion and diffusion.end_datetime|date:"Y-m-d H:i" > s_now %}
       {% if forloop.first and not soundfiles|integral %}
         <a rel="popup" href="{% url 'nonstop-add-diffusion' pk=diffusion.id %}">{% trans "[schedule a stream]" %}</a>
       {% endif %}