From 4ce818750ac0b0aa87309647cee6843868c30a3c Mon Sep 17 00:00:00 2001 From: vashjs Date: Mon, 16 Oct 2023 16:44:40 +0100 Subject: [PATCH] update package.json --- package.json | 2 +- src/components/PermissionsModal/PermissionsModal.test.js | 2 +- src/hooks/useBulkPermissions.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3ac9afaa..fe5e2430 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,7 @@ "visible": true }, { - "permissionName": "ui-bulk-edit.in-app-edit", + "permissionName": "ui-bulk-edit.app-edit", "displayName": "Bulk Edit: In app - Edit inventory records", "subPermissions": [ "ui-bulk-edit.app-view", diff --git a/src/components/PermissionsModal/PermissionsModal.test.js b/src/components/PermissionsModal/PermissionsModal.test.js index 2ec258c9..4fbd6c12 100644 --- a/src/components/PermissionsModal/PermissionsModal.test.js +++ b/src/components/PermissionsModal/PermissionsModal.test.js @@ -18,7 +18,7 @@ jest.mock('./hooks/useAllPermissions'); const permissions = [ { - 'permissionName': 'ui-bulk-edit.in-app-edit', + 'permissionName': 'ui-bulk-edit.app-edit', 'displayName': 'Bulk Edit: In app - Edit', 'id': 'baa169b5-e36c-47fd-bbd7-10ad10fb9ce8', 'mutable': false, diff --git a/src/hooks/useBulkPermissions.js b/src/hooks/useBulkPermissions.js index 98f7f8ae..dac1c85c 100644 --- a/src/hooks/useBulkPermissions.js +++ b/src/hooks/useBulkPermissions.js @@ -9,7 +9,7 @@ export const useBulkPermissions = () => { // In-app perms const hasInAppViewPerms = stripes.hasPerm('ui-bulk-edit.app-view'); - const hasInAppEditPerms = stripes.hasPerm('ui-bulk-edit.in-app-edit'); + const hasInAppEditPerms = stripes.hasPerm('ui-bulk-edit.app-edit'); const hasInAppUsersEditPerms = stripes.hasPerm('ui-bulk-edit.app-edit.users'); // Query perms