Fix Create Package not appearing for unprivileged users

This commit is contained in:
rubenwardy 2021-07-22 11:58:00 +01:00
parent cfddf0ada3
commit ce2bb3abad

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