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

bowersj2 lon-capa-cvs@mail.lon-capa.org
Thu, 14 Aug 2003 22:26:40 -0000


bowersj2		Thu Aug 14 18:26:40 2003 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Rights file with allow with no role or realm now allows access for 
  everyone. Can now "allow" by default and deny specific things.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.401 loncom/lonnet/perl/lonnet.pm:1.402
--- loncom/lonnet/perl/lonnet.pm:1.401	Thu Aug 14 18:23:53 2003
+++ loncom/lonnet/perl/lonnet.pm	Thu Aug 14 18:26:40 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.401 2003/08/14 22:23:53 bowersj2 Exp $
+# $Id: lonnet.pm,v 1.402 2003/08/14 22:26:40 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2256,6 +2256,9 @@
             $access=($effect eq 'allow');
             last;
         }
+	if ($realm eq '' && $role eq '') {
+            $access=($effect eq 'allow');
+	}
     }
     return $access;
 }