fix: impersonation banner shows activeClientId instead of raw JWT clientId

This commit is contained in:
2026-06-11 20:27:08 +04:00
parent 8f9e0a96ad
commit 447acba762
+1 -1
View File
@@ -184,7 +184,7 @@
<% if (typeof isImpersonated !== 'undefined' && isImpersonated) { %> <% if (typeof isImpersonated !== 'undefined' && isImpersonated) { %>
<div style="background:#fef3c7;border:1px solid #d97706;color:#92400e;padding:.5rem 1rem;border-radius:8px;margin-bottom:.5rem;font-size:.85rem;"> <div style="background:#fef3c7;border:1px solid #d97706;color:#92400e;padding:.5rem 1rem;border-radius:8px;margin-bottom:.5rem;font-size:.85rem;">
⚠️ Режим имперсонации — данные сохраняются от имени <strong><%= user.clientId %></strong> ⚠️ Режим имперсонации — данные сохраняются от имени <strong><%= user.activeClientId %></strong>
<% if (typeof originalUserEmail !== 'undefined' && originalUserEmail) { %> <% if (typeof originalUserEmail !== 'undefined' && originalUserEmail) { %>
(вы: <%= originalUserEmail %>) (вы: <%= originalUserEmail %>)
<% } %> <% } %>