Lines 163-169
sub get_availability {
Link Here
|
163 |
$c->_check_availability( $patron, $item ); |
163 |
$c->_check_availability( $patron, $item ); |
164 |
|
164 |
|
165 |
my $confirm_keys = join( ":", sort keys %{$confirmation} ); |
165 |
my $confirm_keys = join( ":", sort keys %{$confirmation} ); |
166 |
$confirm_keys = $user->id . ":" . $item->id . ":" . $confirm_keys; |
166 |
$confirm_keys = $user ? $user->id : '' . ":" . $item->id . ":" . $confirm_keys; |
167 |
my $token = Koha::Token->new->generate_jwt( { id => $confirm_keys } ); |
167 |
my $token = Koha::Token->new->generate_jwt( { id => $confirm_keys } ); |
168 |
|
168 |
|
169 |
my $response = { |
169 |
my $response = { |
170 |
- |
|
|