From f5744f518885eae03d44675ce6a122fa1d1476ce Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 25 Dec 2018 17:58:44 +0000 Subject: [PATCH] Fix non-editors seeing create buttons for topics --- app/templates/macros/topics.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/templates/macros/topics.html b/app/templates/macros/topics.html index 432867d..7048f96 100644 --- a/app/templates/macros/topics.html +++ b/app/templates/macros/topics.html @@ -23,10 +23,12 @@ {{ topic.name or ""}} {{ topic.created_at | date }} - - Create - + {% if topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %} + + Create + + {% endif %} {% if show_discard and current_user.is_authenticated and topic.checkPerm(current_user, "TOPIC_DISCARD") %} {% if topic.discarded %}