Implement permissions properly
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Type</td>
|
||||
<td>{{ package.type.getTitle() }}</td>
|
||||
<td>{{ package.type.value }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user