diff --git a/C4/Circulation.pm b/C4/Circulation.pm index bff0b1e2f5..d8b75fe858 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -4668,7 +4668,7 @@ sub _CanBookBeAutoRenewed { } ); - if ( $patron->is_expired && $patron->category->effective_BlockExpiredPatronOpacActions ) { + if ( $patron->is_expired && $patron->category->effective_BlockExpiredPatronOpacActions_contains('renew') ) { return 'auto_account_expired'; } diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index ee776423a9..7d40c6b4d1 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -751,7 +751,8 @@ sub HoldTitle { return { code => 'PatronRestricted' } if $patron->is_debarred; # Check for patron expired, category and syspref settings - return { code => 'PatronExpired' } if ($patron->category->effective_BlockExpiredPatronOpacActions && $patron->is_expired); + return { code => 'PatronExpired' } + if ( $patron->category->effective_BlockExpiredPatronOpacActions_contains('hold') && $patron->is_expired ); # Get the biblio record, or return an error code my $biblionumber = $cgi->param('bib_id'); @@ -855,7 +856,8 @@ sub HoldItem { return { code => 'PatronRestricted' } if $patron->is_debarred; # Check for patron expired, category and syspref settings - return { code => 'PatronExpired' } if ($patron->category->effective_BlockExpiredPatronOpacActions && $patron->is_expired); + return { code => 'PatronExpired' } + if ( $patron->category->effective_BlockExpiredPatronOpacActions_contains('hold') && $patron->is_expired ); # Get the biblio or return an error code my $biblionumber = $cgi->param('bib_id'); diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index b9be5c22c5..ae3d38e045 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -342,7 +342,7 @@