Lines 76-82
my $patron = Koha::Patrons->find( $borrowernumber );
Link Here
|
76 |
# check if this user can place a reserve, -1 means use sys pref, 0 means dont block, 1 means block |
76 |
# check if this user can place a reserve, -1 means use sys pref, 0 means dont block, 1 means block |
77 |
if ( $patron->category->effective_BlockExpiredPatronOpacActions ) { |
77 |
if ( $patron->category->effective_BlockExpiredPatronOpacActions ) { |
78 |
|
78 |
|
79 |
if ( $borr->{'is_expired'} ) { |
79 |
if ( $patron->is_expired ) { |
80 |
|
80 |
|
81 |
# cannot reserve, their card has expired and the rules set mean this is not allowed |
81 |
# cannot reserve, their card has expired and the rules set mean this is not allowed |
82 |
$template->param( message => 1, expired_patron => 1 ); |
82 |
$template->param( message => 1, expired_patron => 1 ); |