v0.5.141: impersonatedBy = originalUserEmail (админ в аудите)

This commit is contained in:
“Naeel”
2026-06-16 05:34:39 +04:00
parent b42010888e
commit 8e32441866
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "ipwhitelist", "name": "ipwhitelist",
"version": "0.5.140", "version": "0.5.141",
"description": "IP WhiteList microservice for cloud provider", "description": "IP WhiteList microservice for cloud provider",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {
+1 -1
View File
@@ -49,7 +49,7 @@ function resolveContext(req, res, next) {
req.adminMode = req.canAdmin; req.adminMode = req.canAdmin;
req.isAdmin = req.canAdmin; req.isAdmin = req.canAdmin;
req.isImpersonated = isImpersonated; req.isImpersonated = isImpersonated;
req.impersonatedBy = isImpersonated ? u.email : null; req.impersonatedBy = isImpersonated ? u.originalUserEmail : null;
req.allClientIds = allCids; req.allClientIds = allCids;
req.profiles = u.profiles || []; req.profiles = u.profiles || [];
+1 -1
View File
@@ -212,7 +212,7 @@
<th style="width:1%;white-space:nowrap;">Адрес</th> <th style="width:1%;white-space:nowrap;">Адрес</th>
<th>Комментарий</th> <th>Комментарий</th>
<th>Добавил</th> <th>Добавил</th>
<th style="font-size:.78rem;">Добавлена</th> <th style="font-size:.78rem;width:1%;">Добавлена</th>
<th style="text-align:center;white-space:nowrap;">Правка</th> <th style="text-align:center;white-space:nowrap;">Правка</th>
<th style="width:1%;"></th> <th style="width:1%;"></th>
</tr> </tr>