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 && - +