diff --git a/CHANGELOG.md b/CHANGELOG.md index fb3af08..435cfe3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change history for ui-checkin +## [9.0.2] IN PROGRESS + +* Hide fee/fine action menu items when requester is virtual user. Refs UICHKIN-398. + ## [9.0.1] (https://github.com/folio-org/ui-checkin/tree/v9.0.1) (2023-10-23) [Full Changelog](https://github.com/folio-org/ui-checkin/compare/v9.0.0...v9.0.1) * Fix circulation timeout issue. Refs UICHKIN-392. diff --git a/src/CheckIn.js b/src/CheckIn.js index 37999ab..d84baad 100644 --- a/src/CheckIn.js +++ b/src/CheckIn.js @@ -39,6 +39,7 @@ import CheckInFooter from './components/CheckInFooter'; import { convertToSlipData, getCheckinSettings, + isDcbUser, } from './util'; import styles from './checkin.css'; @@ -308,6 +309,7 @@ class CheckIn extends React.Component { const isCheckInNote = element => element.noteType === 'Check in'; const checkinNotePresent = get(loan.item, ['circulationNotes'], []).some(isCheckInNote); const loanOpenRequest = loan?.staffSlipContext?.request ?? {}; + const isVirtualUser = isDcbUser(loan?.borrower); const trigger = ({ getTriggerProps, triggerRef }) => ( - {loan.userId && + {loan.userId && !isVirtualUser &&