Fixed missing permission of agenda submenu.

This commit is contained in:
Emanuel Schuetze 2012-05-23 14:30:42 +02:00
parent 279dade5c4
commit 0ab900cb7a

View File

@ -24,11 +24,15 @@
{# view item #}
{% url item_view item.id as url_itemview %}
<li class="{% if request.path == url_itemview %}selected{% endif %}"><a href="{% url item_view item.id %}">{%trans 'View item' %}</a></li>
{% if perms.agenda.can_manage_agenda %}
{# edit item #}
{% url item_edit item.id as url_itemedit %}
<li class="{% if request.path == url_itemedit %}selected{% endif %}"><a href="{% url item_edit item.id %}">{%trans 'Edit item' %}</a></li>
{# delete item #}
<li><a href="{% url item_delete item.id %}"><img src="{% static 'images/icons/delete.png' %}"> {%trans 'Delete item' %}</a></li>
{% endif %}
{# activate item #}
{% if perms.projector.can_manage_projector %}
<li><a href="{% url projector_activate_slide item.sid %}"><img src="{% static 'images/icons/projector.png' %}"> {%trans 'Show item' %}</a></li>