only show list edit form to list.user

This commit is contained in:
Hugh Rundle 2021-10-09 16:10:00 +11:00
parent 056150d583
commit 714a369246

View file

@ -25,7 +25,9 @@
</div>
<div class="block">
{% include 'lists/edit_form.html' with controls_text="edit_list" user_groups=user_groups %}
{% if request.user == list.user %}
{% include 'lists/edit_form.html' with controls_text="edit_list" user_groups=user_groups %}
{% endif %}
</div>
{% block panel %}{% endblock %}