aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcitrons <citrons>2021-08-08 00:05:33 +0000
committercitrons <citrons>2021-08-08 00:05:33 +0000
commit591ca58043f0c4cb9c148eb058d0c0663ff87c5a (patch)
tree2f6473f27ffce07a04ae4be61cac610126296826
parent242f8cd10f51caa271bb4a5bdbab24f06edaf157 (diff)
UI reflects p_create_threads
-rw-r--r--apioforum/templates/view_forum.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html
index a4ffac6..290bb23 100644
--- a/apioforum/templates/view_forum.html
+++ b/apioforum/templates/view_forum.html
@@ -70,7 +70,7 @@
<h2>threads</h2>
<p>
-{% if g.user %}
+{% 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 %}
please log in to create a new thread