[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

www lon-capa-cvs@mail.lon-capa.org
Sat, 15 Jun 2002 20:06:21 -0000


www		Sat Jun 15 16:06:21 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Denied by role and denied by user log-entries did not work because of
  type $ENV{'user.host'} instead of $ENV{'user.home'} for the user's homeserver.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.238 loncom/lonnet/perl/lonnet.pm:1.239
--- loncom/lonnet/perl/lonnet.pm:1.238	Sat Jun 15 15:45:26 2002
+++ loncom/lonnet/perl/lonnet.pm	Sat Jun 15 16:06:21 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.238 2002/06/15 19:45:26 www Exp $
+# $Id: lonnet.pm,v 1.239 2002/06/15 20:06:21 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1659,7 +1659,7 @@
                 || ($ENV{$prefix.'res.'.$uri.'.lock.sections'} eq 'all')) {
 		   if ($ENV{$prefix.'res.'.$uri.'.lock.expire'}>time) {
                        &log($ENV{'user.domain'},$ENV{'user.name'},
-                            $ENV{'user.host'},
+                            $ENV{'user.home'},
                             'Locked by res: '.$priv.' for '.$uri.' due to '.
                             $cdom.'/'.$cnum.'/'.$csec.' expire '.
                             $ENV{$prefix.'priv.'.$priv.'.lock.expire'});
@@ -1670,7 +1670,7 @@
                 || ($ENV{$prefix.'priv.'.$priv.'.lock.sections'} eq 'all')) {
 		   if ($ENV{'priv.'.$priv.'.lock.expire'}>time) {
                        &log($ENV{'user.domain'},$ENV{'user.name'},
-                            $ENV{'user.host'},
+                            $ENV{'user.home'},
                             'Locked by priv: '.$priv.' for '.$uri.' due to '.
                             $cdom.'/'.$cnum.'/'.$csec.' expire '.
                             $ENV{$prefix.'priv.'.$priv.'.lock.expire'});