summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons>2021-08-08 00:07:46 +0000
committercitrons <citrons>2021-08-08 00:07:46 +0000
commit761e87bd3f5942199dc24ea93f455284ccb608fb (patch)
tree62d39d11840a0282e5148c2131de1c25dffb6a0a
parent591ca58043f0c4cb9c148eb058d0c0663ff87c5a (diff)
UI does not say "login required" when logged in
-rw-r--r--apioforum/templates/view_forum.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html
index 290bb23..0994752 100644
--- a/apioforum/templates/view_forum.html
+++ b/apioforum/templates/view_forum.html
@@ -72,8 +72,10 @@
<p>
{% if has_permission(forum.id, g.user, "p_create_threads") %}
<a class="actionbutton" href="{{url_for('forum.create_thread',forum_id=forum.id)}}">create new thread</a>
-{% else %}
+{% 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
{% endif %}
{% if has_permission(forum.id, g.user, "p_view_threads", login_required=False) %}