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

raeburn lon-capa-cvs@mail.lon-capa.org
Mon, 10 Oct 2005 18:15:54 -0000


raeburn		Mon Oct 10 14:15:54 2005 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Include reverse look up for aa in an author's nohist_userroles.db file.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.660 loncom/lonnet/perl/lonnet.pm:1.661
--- loncom/lonnet/perl/lonnet.pm:1.660	Mon Oct 10 13:57:22 2005
+++ loncom/lonnet/perl/lonnet.pm	Mon Oct 10 14:15:52 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.660 2005/10/10 17:57:22 raeburn Exp $
+# $Id: lonnet.pm,v 1.661 2005/10/10 18:15:52 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1685,9 +1685,10 @@
   
 sub userrolelog {
     my ($trole,$username,$domain,$area,$tstart,$tend)=@_;
-    if (($trole=~/^ca/) || ($trole=~/^in/) || 
-        ($trole=~/^cc/) || ($trole=~/^ep/) ||
-        ($trole=~/^cr/) || ($trole=~/^ta/)) {
+    if (($trole=~/^ca/) || ($trole=~/^aa/) ||
+        ($trole=~/^in/) || ($trole=~/^cc/) || 
+        ($trole=~/^ep/) || ($trole=~/^cr/) ||
+        ($trole=~/^ta/)) {
        my (undef,$rudom,$runame,$rsec)=split(/\//,$area);
        $userrolehash
          {$trole.':'.$username.':'.$domain.':'.$runame.':'.$rudom.':'.$rsec}