core: show 'Create Application' button based on perms
This commit is contained in:
parent
c3e64df95b
commit
6366d50a0e
|
@ -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>
|
||||
|
|
Reference in a new issue