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>
This commit is contained in:
parent
936b23e17a
commit
af0af36bb9
1 changed files with 1 additions and 1 deletions
|
@ -1051,7 +1051,7 @@ sub checkauth {
|
|||
$branchname = $library? $library->branchname: '';
|
||||
}
|
||||
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'};
|
||||
|
|
Loading…
Reference in a new issue