From 6ccb87c7c0e735664061154ff6ca6980fa332083 Mon Sep 17 00:00:00 2001 From: citrons Date: Sun, 8 Aug 2021 00:15:59 +0000 Subject: fix things --- apioforum/templates/config_thread.html | 5 +++-- apioforum/templates/view_forum.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apioforum/templates/config_thread.html b/apioforum/templates/config_thread.html index 383cc9c..0795ccc 100644 --- a/apioforum/templates/config_thread.html +++ b/apioforum/templates/config_thread.html @@ -29,7 +29,8 @@ cancel -{% if thread.poll is none and has_permission(thread.forum, g.user, "p_create_polls") %} +{% if has_permission(thread.forum, g.user, "p_create_polls") %} +{% if thread.poll is none %}

create poll

@@ -49,7 +50,7 @@ - +{% endif %} {% endif %} {% endblock %} diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index 0994752..c42b7b8 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -72,7 +72,7 @@

{% if has_permission(forum.id, g.user, "p_create_threads") %} create new thread -{% elif has_permission(forum.id, g.user "p_create_threads", login_required=False) %} +{% elif has_permission(forum.id, g.user, "p_create_threads", login_required=False) %} please log in to create a new thread {% else %} you do not have permission to create threads in this forum -- cgit v1.2.3