aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-08-25 19:12:42 +0100
committerrubenwardy <rw@rubenwardy.com>2018-08-25 19:12:42 +0100
commita01fe4043e65d8be4b75dfcca8c68ed9bedc7a9e (patch)
tree28147cc33a7b51c73e58b0346ab3ac904c3dedcf
parente0ef0e018d87c0fa793ae4cc18789652ac526d32 (diff)
downloadcheatdb-a01fe4043e65d8be4b75dfcca8c68ed9bedc7a9e.tar.xz
Fix owner not seeing create link in 'more content' list
-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>