From 2233d3f94d1b9d527406839b230026d58278ebfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Mon, 15 Jun 2026 15:19:11 +0400 Subject: [PATCH] =?UTF-8?q?v0.5.117:=20=D0=BF=D1=80=D0=B8=20=D0=B8=D0=BC?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D1=81=D0=BE=D0=BD=D0=B0=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?email=20=D0=B2=20UI=20=D0=BE=D1=82=20=D1=82=D0=B0=D1=80=D0=B3?= =?UTF-8?q?=D0=B5=D1=82=D0=B0,=20=D0=BD=D0=B5=20=D0=BE=D1=82=20=D0=B0?= =?UTF-8?q?=D0=B4=D0=BC=D0=B8=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- v2/src/config/index.js | 2 +- v2/src/router/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ff47840..d2bc87c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.5.116", + "version": "0.5.117", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/src/config/index.js b/v2/src/config/index.js index 6509175..07f5975 100644 --- a/v2/src/config/index.js +++ b/v2/src/config/index.js @@ -9,7 +9,7 @@ // ═══════════════════════════════════════════════════════════════════════════════ module.exports = { - version: '0.5.116', + version: '0.5.117', // ── IAM ────────────────────────────────────────────────────────────────── iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user', diff --git a/v2/src/router/index.js b/v2/src/router/index.js index f278c65..3545b7d 100644 --- a/v2/src/router/index.js +++ b/v2/src/router/index.js @@ -37,7 +37,7 @@ function resolveContext(req, res, next) { // u.impersonatedCompanyId — W-номер компании const isImpersonated = !!(u.originalUserEmail && u.impersonatedCompanyId); - req.email = isImpersonated ? u.originalUserEmail : (u.email || ''); + req.email = u.email || ''; req.clientId = isImpersonated ? u.impersonatedCompanyId : (u.activeClientId || u.clientId || ''); req.companyName = u.companyName || req.clientId; // Админ: пользователь с WZ01112 — всегда админ