Add ability to create packages on behalf of other users

Fixes #27
This commit is contained in:
rubenwardy
2018-04-03 14:56:43 +01:00
parent 5f2a399260
commit ed88c61714
4 changed files with 31 additions and 5 deletions

View File

@@ -74,6 +74,11 @@
<li><i>No packages available</i></ul>
{% endfor %}
</ul>
{% if user == current_user or user.checkPerm(current_user, "CHANGE_AUTHOR") %}
<a href="{{ url_for('create_edit_package_page', author=user.username) }}">
Create
</a>
{% endif %}
</div>
{% if form %}