Only root can create a new launderette

This commit is contained in:
Skia 2016-09-12 17:35:25 +02:00
parent 6cacfb8d8d
commit 09f61eb61c
1 changed files with 2 additions and 0 deletions

View File

@ -5,7 +5,9 @@
{% endblock %}
{% block content %}
{% if user.is_root %}
<p><a href="{{ url('launderette:launderette_new') }}">{% trans %}New launderette{% endtrans %}</a></p>
{% endif %}
{% if launderette_list %}
<h3>{% trans %}Launderette admin list{% endtrans %}</h3>
<ul>