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

raeburn raeburn at source.lon-capa.org
Thu Sep 15 17:37:30 EDT 2011


raeburn		Thu Sep 15 21:37:30 2011 EDT

  Modified files:              (Branch: version_2_10_X)
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Backport 1.1131.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1056.4.29 loncom/lonnet/perl/lonnet.pm:1.1056.4.30
--- loncom/lonnet/perl/lonnet.pm:1.1056.4.29	Tue Aug 16 20:11:23 2011
+++ loncom/lonnet/perl/lonnet.pm	Thu Sep 15 21:37:30 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1056.4.29 2011/08/16 20:11:23 raeburn Exp $
+# $Id: lonnet.pm,v 1.1056.4.30 2011/09/15 21:37:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6732,6 +6732,13 @@
                     return 'refused';
                 }
             }
+        } elsif ($role eq 'au') {
+            if ($url ne '/'.$udom.'/') {
+                &logthis('Attempt by '.$env{'user.name'}.':'.$env{'user.domain'}.
+                         ' to assign author role for '.$uname.':'.$udom.
+                         ' in domain: '.$url.' refused (wrong domain).');
+                return 'refused';
+            }
         }
         $mrole=$role;
     }




More information about the LON-CAPA-cvs mailing list