enable upload only for prod module

This commit is contained in:
Nicolas Le Goff
2012-06-04 15:43:53 +02:00
parent 971e08ec93
commit b17ba25efa

View File

@@ -76,14 +76,16 @@
</li> </li>
{# MODULE #} {# MODULE #}
{% if user.ACL.has_access_to_module('upload') %} {% if module == "prod" %}
<li> {% if user.ACL.has_access_to_module('upload') %}
<a href="/prod/upload/" class="dialog full-dialog" title="{% trans 'Upload' %}"> <li>
<span> <a href="/prod/upload/" class="dialog full-dialog" title="{% trans 'Upload' %}">
{% trans 'admin::monitor: module upload' %} <span>
</span> {% trans 'admin::monitor: module upload' %}
</a> </span>
</li> </a>
</li>
{% endif %}
{% endif %} {% endif %}
{# MODULE #} {# MODULE #}