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 31896a4..b38286b 100644
--- a/app/templates/macros/topics.html
+++ b/app/templates/macros/topics.html
@@ -43,7 +43,7 @@
{% if show_author %}
by <a href="{{ url_for('user_profile_page', username=topic.author.username) }}">{{ topic.author.display_name }}</a>
{% endif %}
- {% if topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %}
+ {% if topic.author == current_user or topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %}
| <a 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</a>
{% endif %}
</li>