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