@zeniai/client-epic-state 4.16.36 → 4.16.37

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.
@@ -137,8 +137,9 @@ const isPerformanceTabVisible = (userRole, userRoleMap) => {
137
137
  return false;
138
138
  }
139
139
  const isSuperAdminLevelAccess = (0, userRoleType_1.hasSuperAdminLevelAccess)(userRole);
140
- const isBookkeepingAdmin = (0, userRoleType_1.hasBookKeepingAdminLevelAccess)(userRole);
141
- return isSuperAdminLevelAccess || isBookkeepingAdmin;
140
+ const isUserHasBookkeepingRole = (0, userRoleType_1.hasBookKeepingUserLevelAccess)(userRole) ||
141
+ (0, userRoleType_1.hasBookKeepingAdminLevelAccess)(userRole);
142
+ return isSuperAdminLevelAccess || isUserHasBookkeepingRole;
142
143
  };
143
144
  exports.isPerformanceTabVisible = isPerformanceTabVisible;
144
145
  const isRemindersSectionVisibleOnSettingsPage = (reminderNotificationSettings) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "4.16.36",
3
+ "version": "4.16.37",
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",