Fix create button show logic in topic list

This commit is contained in:
rubenwardy 2018-12-25 18:15:11 +00:00
parent b10660030a
commit 7801be3d39
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
<td>{{ topic.name or ""}}</td>
<td>{{ topic.created_at | date }}</td>
<td class="btn-group">
{% if topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %}
{% if current_user == topic.author or topic.author.checkPerm(current_user, "CHANGE_AUTHOR") %}
<a class="btn btn-primary"
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