v0.6.18: авто-имперсонация выставляет isAdmin + adminMode
This commit is contained in:
@@ -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 }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user