From 8e32441866b42a328b238eeeb55f77342ec90d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Tue, 16 Jun 2026 05:34:39 +0400 Subject: [PATCH] =?UTF-8?q?v0.5.141:=20impersonatedBy=20=3D=20originalUser?= =?UTF-8?q?Email=20(=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD=20=D0=B2=20=D0=B0=D1=83?= =?UTF-8?q?=D0=B4=D0=B8=D1=82=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- v2/src/router/index.js | 2 +- views/v2/user.ejs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 374abd0..aa0d39d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.5.140", + "version": "0.5.141", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/src/router/index.js b/v2/src/router/index.js index d28dadb..f942e97 100644 --- a/v2/src/router/index.js +++ b/v2/src/router/index.js @@ -49,7 +49,7 @@ function resolveContext(req, res, next) { req.adminMode = req.canAdmin; req.isAdmin = req.canAdmin; req.isImpersonated = isImpersonated; - req.impersonatedBy = isImpersonated ? u.email : null; + req.impersonatedBy = isImpersonated ? u.originalUserEmail : null; req.allClientIds = allCids; req.profiles = u.profiles || []; diff --git a/views/v2/user.ejs b/views/v2/user.ejs index f32b488..8620a6a 100644 --- a/views/v2/user.ejs +++ b/views/v2/user.ejs @@ -212,7 +212,7 @@ Адрес Комментарий Добавил - Добавлена + Добавлена Правка