mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix Create Package not appearing for unprivileged users
This commit is contained in:
parent
cfddf0ada3
commit
ce2bb3abad
@ -119,7 +119,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if user.checkPerm(current_user, "CHANGE_AUTHOR") %}
|
{% if current_user == user or user.checkPerm(current_user, "CHANGE_AUTHOR") %}
|
||||||
<a class="float-right btn btn-sm btn-primary"
|
<a class="float-right btn btn-sm btn-primary"
|
||||||
href="{{ url_for('packages.create_edit', author=user.username) }}">
|
href="{{ url_for('packages.create_edit', author=user.username) }}">
|
||||||
<i class="fas fa-plus mr-1"></i>
|
<i class="fas fa-plus mr-1"></i>
|
||||||
|
Loading…
Reference in New Issue
Block a user