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">
|
<div class="pf-c-empty-state__body">
|
||||||
{% trans "Either no applications are defined, or you don't have access to any." %}
|
{% trans "Either no applications are defined, or you don't have access to any." %}
|
||||||
</div>
|
</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">
|
<a href="{% url 'passbook_admin:application-create' %}" class="pf-c-button pf-m-primary" type="button">
|
||||||
{% trans 'Create Application' %}
|
{% trans 'Create Application' %}
|
||||||
</a>
|
</a>
|
||||||
|
|
Reference in a new issue