Fix Create Package not appearing for unprivileged users
This commit is contained in:
@@ -119,7 +119,7 @@
|
||||
</div>
|
||||
{% 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"
|
||||
href="{{ url_for('packages.create_edit', author=user.username) }}">
|
||||
<i class="fas fa-plus mr-1"></i>
|
||||
|
||||
Reference in New Issue
Block a user