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

www lon-capa-cvs@mail.lon-capa.org
Thu, 29 Jan 2004 00:53:03 -0000


www		Wed Jan 28 19:53:03 2004 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Do not show privileged users (domain coordinator, superuser) as instructors,
  etc.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.465 loncom/lonnet/perl/lonnet.pm:1.466
--- loncom/lonnet/perl/lonnet.pm:1.465	Tue Jan 27 17:54:59 2004
+++ loncom/lonnet/perl/lonnet.pm	Wed Jan 28 19:53:03 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.465 2004/01/27 22:54:59 albertel Exp $
+# $Id: lonnet.pm,v 1.466 2004/01/29 00:53:03 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1446,6 +1446,7 @@
         if (($tend) && ($tend<$now)) { next; }
         if (($tstart) && ($now<$tstart)) { next; }
         my ($role,$username,$domain,$section)=split(/\:/,$_);
+	if (&privileged($username,$domain)) { next; }
         my $key=&plaintext($role);
         if ($section) { $key.=' (Sec/Grp '.$section.')'; }
         if ($returnhash{$key}) {