diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-08-25 19:12:42 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-08-25 19:12:42 +0100 |
commit | a01fe4043e65d8be4b75dfcca8c68ed9bedc7a9e (patch) | |
tree | 28147cc33a7b51c73e58b0346ab3ac904c3dedcf | |
parent | e0ef0e018d87c0fa793ae4cc18789652ac526d32 (diff) | |
download | cheatdb-a01fe4043e65d8be4b75dfcca8c68ed9bedc7a9e.tar.xz |
Fix owner not seeing create link in 'more content' list
-rw-r--r-- | app/templates/macros/topics.html | 2 |
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> |