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

View File

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