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