@zeniai/client-epic-state 4.8.57 → 4.8.59

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.
@@ -302,7 +302,8 @@ const hasZeniAccountsAccess = (userRoleMap) => {
302
302
  }
303
303
  if (userRoleMap.admin ||
304
304
  userRoleMap.deposit_accounts_admin ||
305
- userRoleMap.deposit_accounts_analyst) {
305
+ userRoleMap.deposit_accounts_analyst ||
306
+ (0, exports.hasAnyFinOpRole)(userRoleMap)) {
306
307
  return true;
307
308
  }
308
309
  return false;
@@ -342,7 +343,6 @@ const hasChargeCardAdminLevelAccess = (userRoleMap) => {
342
343
  }
343
344
  if ((userRoleMap.admin ||
344
345
  userRoleMap.charge_card_admin ||
345
- userRoleMap.full ||
346
346
  (0, exports.hasAnyFinOpRole)(userRoleMap)) &&
347
347
  Boolean(userRoleMap.lite) === false) {
348
348
  return true;
@@ -354,7 +354,8 @@ const hasZeniAccountsAdminLevelAccess = (userRoleMap) => {
354
354
  if (userRoleMap == null) {
355
355
  return false;
356
356
  }
357
- if (userRoleMap.admin || userRoleMap.deposit_accounts_admin) {
357
+ if ((userRoleMap.admin || userRoleMap.deposit_accounts_admin) &&
358
+ Boolean(userRoleMap.lite) === false) {
358
359
  return true;
359
360
  }
360
361
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.8.57",
3
+ "version": "4.8.59",
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",