From c17572622d0209f8fd07902c6725e38bce18d383 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 16 Aug 2016 14:01:40 +0100 Subject: [PATCH] Bug 9569: Do not check the IP for login at the OPAC At the OPAC, the AutoLocation feature should not be taken into account: login to the OPAC from outside the IP range should work Signed-off-by: Chris Cormack Signed-off-by: Nick Clemens --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 55722bda78..5821309e8d 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1080,7 +1080,7 @@ sub checkauth { } my $branches = { map { $_->branchcode => $_->unblessed } Koha::Libraries->search }; - if ( C4::Context->boolean_preference('AutoLocation') ) { + if ( $type ne 'opac' and C4::Context->boolean_preference('AutoLocation') ) { # we have to check they are coming from the right ip range my $domain = $branches->{$branchcode}->{'branchip'}; -- 2.39.5