From 7374934d0a4b5ba5606a1ade8beeb29531d0d6fc 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 patch adds in the relevant statement. Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit d556f6a9f2ead235b9daf9df7217ebf2cd2b2b5c) Signed-off-by: Chris Cormack --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 486e6ab5bb..601047d1d4 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -819,7 +819,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; -- 2.39.5