From f985ef45bd083e2df66b689733abfaa456a91974 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 Signed-off-by: Kyle M Hall (cherry picked from commit af0af36bb9a520c31c31067b9b68fd565eef0e63) Signed-off-by: Julian Maurice --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 7480a4ac7e..6823d80411 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1076,7 +1076,7 @@ sub checkauth { $branchname = GetBranchName($branchcode); } my $branches = GetBranches(); - 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