Lines 219-224
sub authenticate_api_request {
Link Here
|
219 |
} |
219 |
} |
220 |
|
220 |
|
221 |
$c->stash('koha.user' => $user); |
221 |
$c->stash('koha.user' => $user); |
|
|
222 |
C4::Context->_new_userenv( 1 ); |
223 |
C4::Context->set_userenv( $user->borrowernumber, $user->userid ); |
222 |
|
224 |
|
223 |
# We do not need any authorization |
225 |
# We do not need any authorization |
224 |
unless ($authorization) { |
226 |
unless ($authorization) { |
225 |
- |
|
|