From 7801be3d398162a1cefd3b8d83d3182fc6715fff Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 25 Dec 2018 18:15:11 +0000 Subject: [PATCH] Fix create button show logic in topic list --- app/templates/macros/topics.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/macros/topics.html b/app/templates/macros/topics.html index 7048f96..a6d0a42 100644 --- a/app/templates/macros/topics.html +++ b/app/templates/macros/topics.html @@ -23,7 +23,7 @@ {{ topic.name or ""}} {{ topic.created_at | date }} - {% if topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %} + {% if current_user == topic.author or topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %} Create