bug fixing :
authoralaurin <alaurin>
Fri, 9 Jun 2006 12:06:15 +0000 (12:06 +0000)
committeralaurin <alaurin>
Fri, 9 Jun 2006 12:06:15 +0000 (12:06 +0000)
- for the userenv cookie, the branch, is now correctly implemented with the ip check .....

C4/Auth.pm

index c1427fb..9da0032 100644 (file)
@@ -490,7 +490,7 @@ sub checkauth {
 #  new op dev :
 # launch a sequence to check if we have a ip for the branch, if we have one we replace the branchcode of the userenv by the branch bound in the ip.
                 my $ip       = $ENV{'REMOTE_ADDR'};
-                my $branches = getbranches();
+                my $branches = getbranches('IS');
                 my @branchesloop;
                 my $branchprinter;
                 foreach my $br ( keys %$branches ) {