@zeniai/client-epic-state 4.13.27 → 4.13.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45,8 +45,9 @@ function getExpenseAutomationView(state) {
|
|
|
45
45
|
let allSteps = [];
|
|
46
46
|
let auditSummary = undefined;
|
|
47
47
|
const currentCompany = companyState.companiesById[currentTenant.companyId];
|
|
48
|
-
const managementInfo = currentCompany.managegmentInfo;
|
|
49
|
-
const
|
|
48
|
+
const managementInfo = currentCompany === null || currentCompany === void 0 ? void 0 : currentCompany.managegmentInfo;
|
|
49
|
+
const controllerUserIds = managementInfo != null ? managementInfo.controllerUserIds : [];
|
|
50
|
+
const reviewerUserIds = managementInfo != null ? managementInfo.reviewerUserIds : [];
|
|
50
51
|
const isZeniUser = Boolean((_a = loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.userEmail) === null || _a === void 0 ? void 0 : _a.includes('zeni.ai'));
|
|
51
52
|
const isControllerOrReviewer = loggedInUser != null &&
|
|
52
53
|
(controllerUserIds.includes(loggedInUser.userId) ||
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.28",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|