@@ -, +, @@ --- C4/Reserves.pm | 5 +++++ 1 file changed, 5 insertions(+) --- a/C4/Reserves.pm +++ a/C4/Reserves.pm @@ -290,6 +290,7 @@ sub CanBookBeReserved{ cannotReserveFromOtherBranches, if syspref 'canreservefromotherbranches' is OK. tooManyReserves, if the borrower has exceeded his maximum reserve amount. notReservable, if holds on this item are not allowed + expired, if patron is expired and expired patrons are not allowed to place holds =cut @@ -308,6 +309,10 @@ sub CanItemBeReserved { my $patron = Koha::Patrons->find( $borrowernumber ); my $borrower = $patron->unblessed; + if ($patron->category->effective_BlockExpiredPatronOpacActions && $patron->is_expired) { + return 'expired'; + } + # If an item is damaged and we don't allow holds on damaged items, we can stop right here return 'damaged' if ( $item->{damaged} --