From decc59185bfdc6d99b49c972e2f410eaaf101555 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 20 May 2013 22:38:32 +0200 Subject: [PATCH] add perms to access to users list and profile --- telemeta/templates/telemeta/base.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telemeta/templates/telemeta/base.html b/telemeta/templates/telemeta/base.html index 64cce080..b029c951 100644 --- a/telemeta/templates/telemeta/base.html +++ b/telemeta/templates/telemeta/base.html @@ -58,7 +58,9 @@ {% else %} {{ user.username }} | {% endif %} +{% if not perms.telemeta.cannot_view_users_and_profiles %} {% trans "Profile" %} | +{% endif %} {% trans "Help" %} | {% trans "Sign out" %} logout @@ -106,7 +108,7 @@
  • {% trans "Geo Navigator" %}
  • {% trans "Advanced search" %}
  • - {% if user.is_authenticated %} + {% if user.is_authenticated and not perms.telemeta.cannot_view_users_and_profiles %}
  • {% trans "Users" %}
  • {% endif %} {% if user.is_staff %} -- 2.39.5