Bug 22943: (QA follow-up) Add new cases

A few additional cases were introduced since the original bug was
authored. This patch simply catches those cases and makes the same
change.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 59955a1383)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2020-03-09 09:17:50 +00:00 committed by Lucas Gass
parent e4eb3a7041
commit 33c6cdd91f
2 changed files with 3 additions and 3 deletions

View File

@ -24,11 +24,11 @@
use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Auth qw(get_template_and_user in_ipset);
use C4::Auth qw(get_template_and_user in_iprange);
use C4::Output qw(output_html_with_http_headers);
my $query = new CGI;
unless ( in_ipset(C4::Context->preference('SelfCheckAllowByIPRanges')) ) {
unless ( in_iprange(C4::Context->preference('SelfCheckAllowByIPRanges')) ) {
print $query->redirect("/cgi-bin/koha/opac-main.pl");
exit;
}

View File

@ -29,7 +29,7 @@ It is called from sco-main.pl
use Modern::Perl;
use CGI qw ( -utf8 );
use C4::Context;
use C4::Auth qw/:DEFAULT get_session in_ipset/;
use C4::Auth qw/:DEFAULT get_session in_iprange/;
use C4::Output;
use C4::Members;
use C4::Koha;