View | Details | Raw Unified | Return to bug 30979
Collapse All | Expand All

(-)a/Koha/REST/V1/Checkouts.pm (-2 / +1 lines)
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
- 

Return to bug 30979