v0.5.141: impersonatedBy = originalUserEmail (админ в аудите)
This commit is contained in:
+1
-1
@@ -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": {
|
||||||
|
|||||||
@@ -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
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user