From: Guillaume Pellerin Date: Fri, 24 May 2013 13:26:44 +0000 (+0200) Subject: fix permissions for profile views X-Git-Tag: 1.5.0rc3~56 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1c492f70b2d0195bb7e9adbf3fb076a87f3564ed;p=telemeta.git fix permissions for profile views --- diff --git a/telemeta/models/system.py b/telemeta/models/system.py index d1b64d5f..f58a7c18 100644 --- a/telemeta/models/system.py +++ b/telemeta/models/system.py @@ -92,7 +92,7 @@ class UserProfile(models.Model): class Meta(MetaCore): db_table = 'profiles' - permissions = (("can_not_view_users_and_profiles", "Cannot view other users and any profile"),) + permissions = (("can_view_users_and_profiles", "Can view other users and any profile"),) class Criteria(ModelCore): diff --git a/telemeta/templates/telemeta/base.html b/telemeta/templates/telemeta/base.html index a7b56645..f663ba83 100644 --- a/telemeta/templates/telemeta/base.html +++ b/telemeta/templates/telemeta/base.html @@ -58,7 +58,7 @@ {% else %} {{ user.username }} | {% endif %} -{% if not perms.telemeta.can_not_view_users_and_profiles %} +{% if perms.telemeta.can_view_users_and_profiles %} {% trans "Profile" %} | {% endif %} {% trans "Help" %} | @@ -84,7 +84,7 @@ {# spaces between li and a elements breaks layout #}