Skip to content

Commit

Permalink
UIBULKED-321: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
UladzislauKutarkin committed Aug 4, 2023
1 parent 6052a63 commit 2965912
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hooks/useBulkPermissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ export const useBulkPermissions = () => {
const hasItemsAndHoldingsInventoryView = hasInAppViewPerms && hasInventoryInstanceViewPerms;
const hasItemInventoryEdit = hasInAppEditPerms && hasItemsPerms;
const hasHoldingsInventoryEdit = hasInAppEditPerms && hasHoldingsPerms;
const hasAnyInventoryWithInAppView = (hasItemInventoryView && hasInAppViewPerms)
|| (hasHoldingsInventoryView && hasInAppViewPerms)
|| (hasItemsAndHoldingsInventoryView && hasInAppViewPerms);
const hasAnyInventoryWithInAppView = (hasItemInventoryView || hasHoldingsInventoryView
|| hasItemsAndHoldingsInventoryView) && hasInAppViewPerms;

// Logs perms
const hasLogViewPerms = stripes.hasPerm('ui-bulk-edit.logs.view');
Expand Down

0 comments on commit 2965912

Please sign in to comment.