From 93d9da49abfb980951265aeaee9a2cf251bc1044 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 14 Jun 2021 20:22:50 +0000 Subject: hide config thread button if you wouldn't be able to access it anyway --- apioforum/templates/view_thread.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apioforum/templates/view_thread.html b/apioforum/templates/view_thread.html index ddc45b8..eaaf581 100644 --- a/apioforum/templates/view_thread.html +++ b/apioforum/templates/view_thread.html @@ -5,7 +5,9 @@ {% endblock %} {%block content%} -configure +{% if g.user == thread.creator %} +configure thread +{% endif %}
{% for post in posts %} {% call disp_post(post, True) %} -- cgit v1.2.3