Implement permissions properly

This commit is contained in:
rubenwardy
2018-03-20 03:16:46 +00:00
parent 5a3764f178
commit 775850bbba
3 changed files with 26 additions and 23 deletions

View File

@@ -7,7 +7,7 @@
{% block content %}
<ul>
{% for p in packages %}
<li><a href="{{ url_for('package_page', type=p.type.getTitle()|lower, author=p.author.username, name=p.name) }}">
<li><a href="{{ p.getDetailsURL() }}">
{{ p.title }} by {{ p.author.display_name }}
</a></li>
{% else %}