From bc35250f282338757a8502c0fb45866ff891c7c5 Mon Sep 17 00:00:00 2001 From: Cervinko Cera Date: Wed, 27 Apr 2016 10:39:52 +0200 Subject: [PATCH] permission fix in user_edit.html --- cps/templates/user_edit.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index af6ad795..abe5e9c8 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -3,7 +3,7 @@

{{title}}

- {% if g.user and g.user.role and new_user %} + {% if g.user and g.user.role_admin() and new_user %}
@@ -21,7 +21,7 @@
- {% if g.user and g.user.role and not profile %} + {% if g.user and g.user.role_admin() and not profile %}
@@ -39,7 +39,7 @@
{% endif %} - {% if g.user and g.user.role and not profile and not new_user %} + {% if g.user and g.user.role_admin() and not profile and not new_user %}