Commit 3adfaa01 authored by fred's avatar fred

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

parent 30606a6b
......@@ -51,7 +51,7 @@ Tags :
<ul>
{% for diffusion in diffusions %}
<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>
{% endif %}
</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