Bugzilla – Attachment 106089 Details for
Bug 24003
REST API should set C4::Context->userenv
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[19.11.x] Bug 24003: (follow-up) Move interface setting to a more readable place
1911x-Bug-24003-follow-up-Move-interface-setting-t.patch (text/plain), 1.65 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-06-19 12:59:40 UTC
(
hide
)
Description:
[19.11.x] Bug 24003: (follow-up) Move interface setting to a more readable place
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-06-19 12:59:40 UTC
Size:
1.65 KB
patch
obsolete
>From c8c29f9560447da59b173e2ea4e6f921d2e1ba72 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 5 Jun 2020 09:47:47 -0300 >Subject: [PATCH] [19.11.x] Bug 24003: (follow-up) Move interface setting to a > more readable place > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/REST/V1/Auth.pm | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/Koha/REST/V1/Auth.pm b/Koha/REST/V1/Auth.pm >index e5a41a8efa6..3e1405afb9b 100644 >--- a/Koha/REST/V1/Auth.pm >+++ b/Koha/REST/V1/Auth.pm >@@ -181,7 +181,6 @@ sub authenticate_api_request { > if ($valid_token) { > my $patron_id = Koha::ApiKeys->find( $valid_token->{client_id} )->patron_id; > $user = Koha::Patrons->find($patron_id); >- C4::Context->interface('api'); > } > else { > # If we have "Authorization: Bearer" header and oauth authentication >@@ -198,7 +197,6 @@ sub authenticate_api_request { > ); > } > $user = $c->_basic_auth( $authorization_header ); >- C4::Context->interface('api'); > unless ( $user ) { > # If we have "Authorization: Basic" header and authentication > # failed, do not try other authentication means >@@ -247,6 +245,7 @@ sub authenticate_api_request { > } > > $c->stash('koha.user' => $user); >+ C4::Context->interface('api'); > > if ( $user and !$cookie_auth ) { # cookie-auth sets this and more, don't mess with that > C4::Context->_new_userenv( $user->borrowernumber ); >-- >2.27.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24003
:
95228
|
95230
|
105579
|
105580
|
105581
|
105586
|
105587
|
105588
|
105633
|
105634
|
105635
|
105666
|
105844
|
105845
|
105846
|
105847
|
106087
|
106088
| 106089 |
106090