Bug 13779: (QA follow-up) Correct checkauth call in offline_circ/download.pl
Script offline_circ/download.pl does not use the return values of checkauth. So should not assign them to bad chosen variables that do not correspond with checkauth but with get_template_and_user. Test plan: Look for $template, $loggedinuser, $cookie, $flags in the code. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
331af8521b
commit
bf7082f854
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ use C4::Context;
|
||||||
use C4::Koha;
|
use C4::Koha;
|
||||||
|
|
||||||
my $query = new CGI;
|
my $query = new CGI;
|
||||||
my ( $template, $loggedinuser, $cookie, $flags ) =
|
checkauth( $query, undef, { circulate => "circulate_remaining_permissions" },
|
||||||
checkauth( $query, undef, { circulate => "circulate_remaining_permissions" },
|
|
||||||
"intranet" );
|
"intranet" );
|
||||||
|
|
||||||
my $page = $query->param('page') || 0;
|
my $page = $query->param('page') || 0;
|
||||||
|
|
Loading…
Reference in a new issue