From af77a768fbb6110a981604c41c4d171321619694 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 19 Dec 2018 10:17:17 +0100 Subject: [PATCH] core: only show Admin menu if user is admin --- passbook/core/templates/overview/base.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/passbook/core/templates/overview/base.html b/passbook/core/templates/overview/base.html index ebbb9f826..6b5045701 100644 --- a/passbook/core/templates/overview/base.html +++ b/passbook/core/templates/overview/base.html @@ -25,7 +25,7 @@ @@ -52,11 +52,13 @@
  • {% trans 'Overview' %}
  • + {% if user.is_superuser %}
  • {% trans 'Administration' %} {% block nav_secondary %} {% endblock %}
  • + {% endif %}