From 6366d50a0e17ef157d9f566ea0b49348730667a0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 26 Sep 2020 19:54:52 +0200 Subject: [PATCH] core: show 'Create Application' button based on perms --- passbook/core/templates/overview/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/core/templates/overview/index.html b/passbook/core/templates/overview/index.html index da1e10015..290e02a11 100644 --- a/passbook/core/templates/overview/index.html +++ b/passbook/core/templates/overview/index.html @@ -53,7 +53,7 @@
{% trans "Either no applications are defined, or you don't have access to any." %}
- {% if user.is_superuser %} {# TODO:use guardian permissions instead #} + {% if perms.passbook_core.add_application %} {% trans 'Create Application' %}