From 398b86506175f4620dc045fbc4067babea2e938a Mon Sep 17 00:00:00 2001 From: Dmytro-Melnyshyn <77053927+Dmytro-Melnyshyn@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:42:02 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"STSMACOM-870:=20Rename=20the=20`ui-no?= =?UTF-8?q?tes.item.assign-unassign`=20permission.=20=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 89b72995c1fb76f6aae400bc4ac79c7cd249a9d5. --- CHANGELOG.md | 1 - lib/Notes/NoteViewPage/components/NoteView/NoteView.js | 4 ++-- lib/Notes/components/NotesAccordion/NotesAccordion.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a45098ca..e05f2cf1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,6 @@ * Improve confirmation modal footer for `ControlledVocab` component. Refs STSMACOM-863. * Add the `endDateInputRef` prop to `DateRangeFilter` to access the end date element. Refs STSMACOM-859. * Remove unnecessary `aria-rowindex` in `ItemView` and `ItemEdit` components. Fixes STSMACOM-871. -* Rename the `ui-notes.item.assign-unassign` permission. Refs STSMACOM-870. ## [9.2.0](https://github.com/folio-org/stripes-smart-components/tree/v9.2.0) (2024-10-11) [Full Changelog](https://github.com/folio-org/stripes-smart-components/compare/v9.1.3...v9.2.0) diff --git a/lib/Notes/NoteViewPage/components/NoteView/NoteView.js b/lib/Notes/NoteViewPage/components/NoteView/NoteView.js index 1a0dea3ba..5b7ede8d6 100644 --- a/lib/Notes/NoteViewPage/components/NoteView/NoteView.js +++ b/lib/Notes/NoteViewPage/components/NoteView/NoteView.js @@ -147,7 +147,7 @@ export default class NoteView extends Component { } = this.props; - const canAssignUnassign = stripes.hasPerm('ui-notes.item.assign-unassign.execute'); + const canAssignUnassign = stripes.hasPerm('ui-notes.item.assign-unassign'); const canDelete = stripes.hasPerm('ui-notes.item.delete'); const canEdit = stripes.hasPerm('ui-notes.item.edit'); @@ -162,7 +162,7 @@ export default class NoteView extends Component { <> { canUnassign && - +