Allow moderators & admin to edit & remove any post

This commit is contained in:
David Hoppenbrouwers
2022-10-08 18:05:50 +02:00
parent 36934e3098
commit 5773bce507
6 changed files with 105 additions and 36 deletions

View File

@@ -9,8 +9,8 @@
<nav>
<a class=logo href="{{ url_for('index') }}">A</a>
<div style="margin:auto"></div>
{% if 'user_id' in session %}
<a href="{{ url_for('user_edit') }}">User panel</a>
{% if user is not none %}
<a href="{{ url_for('user_edit') }}">{{ user.name }}</a>
<span>|</span>
<a href="{{ url_for('logout') }}">Logout</a>
{% else %}