From 2c7846d12a28608890d5ee35b59969005783bfd4 Mon Sep 17 00:00:00 2001 From: Zambom Date: Tue, 10 Jan 2017 14:55:03 -0200 Subject: [PATCH] Making create subject button available to admins --- subjects/templates/subjects/list.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/subjects/templates/subjects/list.html b/subjects/templates/subjects/list.html index 180433e..b984c55 100644 --- a/subjects/templates/subjects/list.html +++ b/subjects/templates/subjects/list.html @@ -93,7 +93,7 @@ {{category.description|safe}} - {% if request.user in category.coordinators.all %} + {% if request.user in category.coordinators.all or request.user.is_staff %} {% endif %} @@ -139,6 +139,7 @@
+ {% if category.coordinators.all|length > 0 %}

{% trans "Coordinator(s) " %}: {{ category.coordinators.all|join:', ' }} @@ -148,8 +149,8 @@ {% endif %} {{category.description|safe}} - - {% if request.user in category.coordinators.all %} + + {% if request.user in category.coordinators.all or request.user.is_staff %} {% endif %} -- libgit2 0.21.2