Fix owner not seeing create link in 'more content' list

This commit is contained in:
rubenwardy 2018-08-25 19:12:42 +01:00
parent e0ef0e018d
commit a01fe4043e
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C

@ -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>