fix: allow dev guest to switch to authenticated account

This commit is contained in:
Luftmensch
2026-09-03 16:48:05 +07:00
parent 680a23b3fb
commit aeba055e43
3 changed files with 22 additions and 3 deletions
+4
View File
@@ -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