aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-08-25 19:10:11 +0100
committerrubenwardy <rw@rubenwardy.com>2018-08-25 19:10:11 +0100
commite0ef0e018d87c0fa793ae4cc18789652ac526d32 (patch)
tree3958a50ab87ae754299c7e96f104dbd1e274394f
parent0210a3e6017732a4588190e22f39ff1b4fbc2e8c (diff)
downloadcheatdb-e0ef0e018d87c0fa793ae4cc18789652ac526d32.tar.xz
Fix permissions check in 'more content' list
-rw-r--r--app/templates/macros/topics.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/templates/macros/topics.html b/app/templates/macros/topics.html
index 0e01185..31896a4 100644
--- a/app/templates/macros/topics.html
+++ b/app/templates/macros/topics.html
@@ -43,8 +43,8 @@
{% if show_author %}
by <a href="{{ url_for('user_profile_page', username=topic.author.username) }}">{{ topic.author.display_name }}</a>
{% endif %}
- {% if not 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>
+ {% if 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>
{% endfor %}