From 8d397a9989d57976217d7fe7241b25ec2aa15d20 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 11 Dec 2014 13:39:24 +0000 Subject: [PATCH] Bug - 5511 [Followup]: Missed Instance There was an instance of the pragma missed which meant the the original patch set didn't actually solve the problem in a large number of cases This aptch adds in the relevant statement. --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 6255b34..1840ab1 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -790,7 +790,7 @@ sub checkauth { $userid = undef; $sessionID = undef; } - elsif ( $ip ne $ENV{'REMOTE_ADDR'} ) { + elsif ( C4::Context->preference('SessionRestrictionByIP') && $ip ne $ENV{'REMOTE_ADDR'} ) { # Different ip than originally logged in from $info{'oldip'} = $ip; $info{'newip'} = $ENV{'REMOTE_ADDR'}; -- 1.7.10.4