core: show 'Create Application' button based on perms

This commit is contained in:
Jens Langhammer 2020-09-26 19:54:52 +02:00
parent c3e64df95b
commit 6366d50a0e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
<div class="pf-c-empty-state__body">
{% trans "Either no applications are defined, or you don't have access to any." %}
</div>
{% if user.is_superuser %} {# TODO:use guardian permissions instead #}
{% if perms.passbook_core.add_application %}
<a href="{% url 'passbook_admin:application-create' %}" class="pf-c-button pf-m-primary" type="button">
{% trans 'Create Application' %}
</a>