From 7907f2abb9dc237781481b08d8cae7406114bc89 Mon Sep 17 00:00:00 2001 From: Zambom Date: Wed, 11 Jan 2017 12:10:04 -0200 Subject: [PATCH] Adding create subject button to admin --- subjects/templates/subjects/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/templates/subjects/list.html b/subjects/templates/subjects/list.html index a568ce8..1c1d6de 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 %} @@ -149,7 +149,7 @@ {{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