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):
{% else %}
{{ user.username }} |
{% endif %}
-{% if not perms.telemeta.can_not_view_users_and_profiles %}
+{% if perms.telemeta.can_view_users_and_profiles %}
<a href="{% url telemeta-profile-detail user.username %}">{% trans "Profile" %}</a> |
{% endif %}
<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
{# spaces between li and a elements breaks layout #}
<ul id="nav">
- {% if user.is_authenticated and not perms.telemeta.can_not_view_users_and_profiles %}
+ {% if user.is_authenticated and perms.telemeta.can_view_users_and_profiles %}
<li><a href="#desk#" class="blue">{% trans "Desk" %}</a>
<ul>
<li><a href="{% url telemeta-desk-lists %}">{% trans "Lists" %}</a></li>
<li><a href="{% url telemeta-geo-continents %}" class="yellow">{% trans "Geo Navigator" %}</a></li>
<li><a href="{% url telemeta-search-criteria %}" class="orange">{% trans "Advanced search" %}</a></li>
- {% if user.is_authenticated and not perms.telemeta.can_not_view_users_and_profiles %}
+ {% if user.is_authenticated and perms.telemeta.can_view_users_and_profiles %}
<li><a href="{% url telemeta-users %}" class="red">{% trans "Users" %}</a></li>
{% endif %}
{% if user.is_staff %}