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 <chrisc@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Martin Renvoize 2014-12-11 13:39:24 +00:00 committed by Tomas Cohen Arazi
parent 129fb1fbe2
commit d556f6a9f2
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,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;