aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/templates/macros/topics.html2
1 files changed, 1 insertions, 1 deletions
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 @@
<td>{{ topic.name or ""}}</td>
<td>{{ topic.created_at | date }}</td>
<td class="btn-group">
- {% if topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %}
+ {% if current_user == topic.author or topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %}
<a class="btn btn-primary"
href="{{ url_for('create_edit_package_page', author=topic.author.username, repo=topic.getRepoURL(), forums=topic.topic_id, title=topic.title, bname=topic.name) }}">
Create