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'};