fix: allow dev guest to switch to authenticated account
This commit is contained in:
@@ -189,7 +189,11 @@
|
||||
<span class="header-user-role">{{ user_info.role|upper }} {% if user_info.unit_name %} | {{ user_info.unit_name }}{% endif %}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if user_info.role == 'dev_guest' %}
|
||||
<a href="{{ url_for('login') }}" class="header-action-btn">🔐 Đăng nhập Admin/Analyzer</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for('logout') }}" class="header-action-btn">🚪 Đăng xuất</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="header-guest">
|
||||
👤 Khách
|
||||
|
||||
Reference in New Issue
Block a user