Add is_root property to user

This commit is contained in:
Skia
2016-08-14 04:35:08 +02:00
parent 792563999b
commit e1474c7a74
6 changed files with 11 additions and 10 deletions

View File

@ -17,7 +17,7 @@
{%- endmacro %}
{% block content %}
{% if user.is_superuser or user.is_in_group(settings.SITH_GROUPS['root']['name']) %}
{% if user.is_root %}
<p><a href="{{ url('club:club_new') }}">{% trans %}New club{% endtrans %}</a></p>
{% endif %}
{% if club_list %}