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