diff --git a/package.json b/package.json index fe5e2430..279c4454 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,10 @@ "visible": true }, { - "permissionName": "ui-bulk-edit.app-edit", + "permissionName": "ui-bulk-edit.in-app-edit", + "replaces": [ + "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 4fbd6c12..2ec258c9 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.app-edit', + 'permissionName': 'ui-bulk-edit.in-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 dac1c85c..98f7f8ae 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.app-edit'); + const hasInAppEditPerms = stripes.hasPerm('ui-bulk-edit.in-app-edit'); const hasInAppUsersEditPerms = stripes.hasPerm('ui-bulk-edit.app-edit.users'); // Query perms