Исправление для корретной работы после авторизации
This commit is contained in:
@@ -26,4 +26,4 @@ def index():
|
||||
def logout():
|
||||
session.clear()
|
||||
return render_template('main_menu.html', ses=session)
|
||||
app.run(port=5001, host='0.0.0.0')
|
||||
app.run(port=5002, host='0.0.0.0')
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
<h1>Здравствуйте, {{ ses['login'] }}!</h1>
|
||||
<h2> Ваша роль: {{ ses['role'] }}</h2>
|
||||
{% if ses['access_user'] == 'in' %}
|
||||
{% if ses['access_user'] == 'internal_users' %}
|
||||
<!-- Not implemented -->
|
||||
<nav class="menu">
|
||||
<a href="{{ url_for('requests_bp.requests') }}"><button>Запросы</button></a>
|
||||
|
||||
Reference in New Issue
Block a user