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