Lines 2130-2137
Patron object
Link Here
|
2130 |
sub can_patron_place_ill_in_opac { |
2130 |
sub can_patron_place_ill_in_opac { |
2131 |
my ( $self, $patron ) = @_; |
2131 |
my ( $self, $patron ) = @_; |
2132 |
|
2132 |
|
|
|
2133 |
return 1 if C4::Context->preference('ILLOpacUnauthenticatedRequest') && !$patron; |
2134 |
|
2133 |
return 0 |
2135 |
return 0 |
2134 |
unless $patron->_result->categorycode->can_place_ill_in_opac |
2136 |
unless $patron |
|
|
2137 |
&& $patron->_result->categorycode->can_place_ill_in_opac |
2135 |
&& !( $patron->is_expired |
2138 |
&& !( $patron->is_expired |
2136 |
&& $patron->category->effective_BlockExpiredPatronOpacActions_contains('ill_request') ); |
2139 |
&& $patron->category->effective_BlockExpiredPatronOpacActions_contains('ill_request') ); |
2137 |
return 1; |
2140 |
return 1; |
2138 |
- |
|
|