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 <chrisc@catalyst.net.nz>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit af0af36bb9)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
599e5791b9
commit
f985ef45bd
|
|
@ -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'};
|
||||
|
|
|
|||
Loading…
Reference in New Issue