@@ -, +, @@ Koha::REST::V1::Auth::authenticate_api_request --- Koha/REST/V1/Auth.pm | 2 ++ 1 file changed, 2 insertions(+) --- a/Koha/REST/V1/Auth.pm +++ a/Koha/REST/V1/Auth.pm @@ -219,6 +219,8 @@ sub authenticate_api_request { } $c->stash('koha.user' => $user); + C4::Context->_new_userenv( 1 ); + C4::Context->set_userenv( $user->borrowernumber, $user->userid ); # We do not need any authorization unless ($authorization) { --