Skip to content

Commit

Permalink
UIIN-2452: Change permissions to view/create holdings and items
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrHladchenko1 committed Oct 24, 2023
1 parent 99a92ca commit 05d6335
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Instance/HoldingsList/HoldingsListContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const HoldingsListContainer = ({
const { holdingsRecords: holdings, isLoading } = useInstanceHoldingsQuery(instance.id, { tenantId });

const canViewHoldings = stripes.hasPerm('ui-inventory.holdings.create');
const canCreateItem = stripes.hasPerm('ui-inventory.item.edit');
const canCreateItem = stripes.hasPerm('ui-inventory.item.create');
const canViewItems = stripes.hasPerm('ui-inventory.item.create');

if (isLoading) return <Loading size="large" />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const MemberTenantHoldings = ({
const isUserInCentralTenant = checkIfUserInCentralTenant(stripes);

const canViewHoldings = hasMemberTenantPermission('ui-inventory.holdings.create', id, userTenantPermissions);
const canCreateItem = hasMemberTenantPermission('ui-inventory.item.edit', id, userTenantPermissions);
const canCreateHoldings = hasMemberTenantPermission('ui-inventory.holdings.edit', id, userTenantPermissions);
const canCreateItem = hasMemberTenantPermission('ui-inventory.item.create', id, userTenantPermissions);
const canCreateHoldings = hasMemberTenantPermission('ui-inventory.holdings.create', id, userTenantPermissions);
const canViewItems = hasMemberTenantPermission('ui-inventory.item.create', id, userTenantPermissions);

if (isEmpty(holdingsRecords)) return null;
Expand Down

0 comments on commit 05d6335

Please sign in to comment.