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: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
197425b450
commit
ba57d68519
|
|
@ -34,8 +34,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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue