@zeniai/client-epic-state 4.8.60 → 4.8.61
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.
|
@@ -264,7 +264,8 @@ const hasBillPayAccess = (userRoleMap) => {
|
|
|
264
264
|
userRoleMap.bill_pay_analyst ||
|
|
265
265
|
userRoleMap.bill_pay_approver ||
|
|
266
266
|
userRoleMap.full ||
|
|
267
|
-
userRoleMap.lite
|
|
267
|
+
userRoleMap.lite ||
|
|
268
|
+
(0, exports.hasAnyFinOpRole)(userRoleMap)) {
|
|
268
269
|
return true;
|
|
269
270
|
}
|
|
270
271
|
return false;
|
|
@@ -278,7 +279,8 @@ const hasReimbursementAccess = (userRoleMap) => {
|
|
|
278
279
|
userRoleMap.reimbursement_admin ||
|
|
279
280
|
userRoleMap.employee ||
|
|
280
281
|
userRoleMap.full ||
|
|
281
|
-
userRoleMap.lite
|
|
282
|
+
userRoleMap.lite ||
|
|
283
|
+
(0, exports.hasAnyFinOpRole)(userRoleMap)) {
|
|
282
284
|
return true;
|
|
283
285
|
}
|
|
284
286
|
return false;
|
|
@@ -313,11 +315,10 @@ const hasBillPayAdminLevelAccess = (userRoleMap) => {
|
|
|
313
315
|
if (userRoleMap == null) {
|
|
314
316
|
return false;
|
|
315
317
|
}
|
|
316
|
-
if (
|
|
318
|
+
if (userRoleMap.admin ||
|
|
317
319
|
userRoleMap.bill_pay_admin ||
|
|
318
320
|
userRoleMap.full ||
|
|
319
|
-
(0, exports.hasAnyFinOpRole)(userRoleMap))
|
|
320
|
-
Boolean(userRoleMap.lite) === false) {
|
|
321
|
+
(0, exports.hasAnyFinOpRole)(userRoleMap)) {
|
|
321
322
|
return true;
|
|
322
323
|
}
|
|
323
324
|
return false;
|
|
@@ -327,11 +328,10 @@ const hasReimbursementAdminLevelAccess = (userRoleMap) => {
|
|
|
327
328
|
if (userRoleMap == null) {
|
|
328
329
|
return false;
|
|
329
330
|
}
|
|
330
|
-
if (
|
|
331
|
+
if (userRoleMap.admin ||
|
|
331
332
|
userRoleMap.reimbursement_admin ||
|
|
332
333
|
userRoleMap.full ||
|
|
333
|
-
(0, exports.hasAnyFinOpRole)(userRoleMap))
|
|
334
|
-
Boolean(userRoleMap.lite) === false) {
|
|
334
|
+
(0, exports.hasAnyFinOpRole)(userRoleMap)) {
|
|
335
335
|
return true;
|
|
336
336
|
}
|
|
337
337
|
return false;
|
|
@@ -341,10 +341,7 @@ const hasChargeCardAdminLevelAccess = (userRoleMap) => {
|
|
|
341
341
|
if (userRoleMap == null) {
|
|
342
342
|
return false;
|
|
343
343
|
}
|
|
344
|
-
if (
|
|
345
|
-
userRoleMap.charge_card_admin ||
|
|
346
|
-
(0, exports.hasAnyFinOpRole)(userRoleMap)) &&
|
|
347
|
-
Boolean(userRoleMap.lite) === false) {
|
|
344
|
+
if (userRoleMap.admin || userRoleMap.charge_card_admin) {
|
|
348
345
|
return true;
|
|
349
346
|
}
|
|
350
347
|
return false;
|
|
@@ -354,8 +351,7 @@ const hasZeniAccountsAdminLevelAccess = (userRoleMap) => {
|
|
|
354
351
|
if (userRoleMap == null) {
|
|
355
352
|
return false;
|
|
356
353
|
}
|
|
357
|
-
if (
|
|
358
|
-
Boolean(userRoleMap.lite) === false) {
|
|
354
|
+
if (userRoleMap.admin || userRoleMap.deposit_accounts_admin) {
|
|
359
355
|
return true;
|
|
360
356
|
}
|
|
361
357
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.61",
|
|
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",
|