{% extends "base.html" %} {% comment %} SPDX-License-Identifier: GPL-3.0-or-later {% endcomment %} {% load i18n %} {% load render_table from django_tables2 %} {% block content %} {% if user.is_authenticated %}

{% trans "Users that have surnormal rights" %}

{% trans "Superusers have all rights on everything, to manage the website." %}
{% render_table superusers %}

{% render_table special_memberships_table %}
{% endif %}

{% trans "Roles description" %}

{% if user.is_authenticated %}
{% endif %}
{% regroup active_memberships by roles as memberships_per_role %} {% for role in roles %}
{% if role.clubs %}
{% trans "Own this role in the clubs" %} {{ role.clubs|join:", " }}
{% endif %}
    {% for permission in role.permissions.all %}
  • {{ permission }} ({{ permission.get_type_display }} {{ permission.model }}{% if permission.permanent %}, {% trans "permanent" %}{% endif %})
  • {% empty %} {% trans "No associated permission" %} {% endfor %}
{% endfor %}
{% endblock %} {% block extrajavascript %} {% endblock %}