mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix create button show logic in topic list
This commit is contained in:
parent
b10660030a
commit
7801be3d39
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user