Lines 189-194
sub add {
Link Here
|
189 |
my $patron_id = $body->{patron_id}; |
189 |
my $patron_id = $body->{patron_id}; |
190 |
my $onsite = $body->{onsite_checkout}; |
190 |
my $onsite = $body->{onsite_checkout}; |
191 |
|
191 |
|
|
|
192 |
if ( $c->stash('is_public') |
193 |
&& !C4::Context->preference('OpacTrustedCheckout') ) |
194 |
{ |
195 |
return $c->render( |
196 |
status => 405, |
197 |
openapi => { |
198 |
error => 'Feature disabled', |
199 |
error_code => 'FEATURE_DISABLED' |
200 |
} |
201 |
); |
202 |
} |
203 |
|
192 |
return try { |
204 |
return try { |
193 |
my $item = Koha::Items->find($item_id); |
205 |
my $item = Koha::Items->find($item_id); |
194 |
unless ($item) { |
206 |
unless ($item) { |