diff --git a/CHANGELOG.md b/CHANGELOG.md index 3877214..7414ef3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 9.1.0 IN PROGRESS * Also support `feesfines` interface version `19.0`. Refs UICHKIN-401. +* 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) diff --git a/src/CheckIn.js b/src/CheckIn.js index 37999ab..6ee3db9 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 &&