Bug 29931: (follow-up) Fix svc/checkouts and return_claims too

Adding the same auth_status check here too.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2022-01-25 12:21:42 +00:00 committed by Kyle Hall
parent c93df0695f
commit 8b91d08fae
2 changed files with 10 additions and 4 deletions

View File

@ -33,8 +33,11 @@ use Koha::ItemTypes;
my $input = CGI->new;
my ( $auth_status, $session ) =
check_cookie_auth( $input->cookie('CGISESSID'));
my ( $auth_status, $session ) = check_cookie_auth( $input->cookie('CGISESSID'));
if( $auth_status ne 'ok' ) {
print CGI::header( '-status' => '401' );
exit 0;
}
my $userid = $session->param('id');

View File

@ -31,8 +31,11 @@ use Koha::Patrons;
my $input = CGI->new;
my ( $auth_status, $session ) =
check_cookie_auth( $input->cookie('CGISESSID') );
my ( $auth_status, $session ) = check_cookie_auth( $input->cookie('CGISESSID') );
if( $auth_status ne 'ok' ) {
print CGI::header( '-status' => '401' );
exit 0;
}
my $userid = $session->param('id');