Commit 3adfaa01 authored by fred's avatar fred
Browse files

don't display 'remove diffusion' button if the user is not authorized

parent 30606a6b
...@@ -51,7 +51,7 @@ Tags : ...@@ -51,7 +51,7 @@ Tags :
<ul> <ul>
{% for diffusion in diffusions %} {% for diffusion in diffusions %}
<li>{{ diffusion.datetime }} <li>{{ diffusion.datetime }}
{% if can_manage %} {% if can_manage and perms.emissions.delete_diffusion %}
<a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a> <a href="diffusion/{{ diffusion.id }}/remove" class="icon-remove-sign" title="Retirer"></a>
{% endif %} {% endif %}
</li> </li>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment