diff --git a/package.json b/package.json index ec6c25f..f1d23ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.6.17", + "version": "0.6.18", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/src/impersonation/index.js b/v2/src/impersonation/index.js index e2f9758..6b04c82 100644 --- a/v2/src/impersonation/index.js +++ b/v2/src/impersonation/index.js @@ -42,6 +42,8 @@ function enhanceImpersonation(req, res, next) { u.allClientIds = allCids; u.isImpersonated = true; u.impersonatedCompanyId = COMPANY; // для resolveContext + u.isAdmin = true; // псевдо-админ + u.adminMode = true; // включён u.companyName = COMPANY; u.profiles = allCids.map(cid => ({ client_id: cid, company_name: cid }));