Implement ACLs
This commit is contained in:
@@ -16,6 +16,11 @@
|
||||
<span> / <a href="{{ app.config.VIEW_URI }}{{ uri }}">{{ name }}</a></span>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
{% if session['user_id'] == 1 %}
|
||||
Welcome, {{ user['name'] }}. [ <a href="{{ url_for('login') }}">LOGIN</a> ]
|
||||
{% else %}
|
||||
Welcome, <a href="{{ url_for('User/' + user['name']) }}">{{ user['name'] }}</a>.
|
||||
{% endif %}
|
||||
<nav>
|
||||
Menu:
|
||||
<ul>
|
||||
@@ -26,7 +31,7 @@
|
||||
<br>
|
||||
|
||||
<main>
|
||||
{% for message in get_flashed_messages() %}
|
||||
{% for message in g.messages %}
|
||||
<div class="alert">
|
||||
{{ message }}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user