[LON-CAPA-cvs] cvs: loncom / lond

raeburn raeburn@source.lon-capa.org
Fri, 18 Jun 2010 19:19:33 -0000


raeburn		Fri Jun 18 19:19:33 2010 EDT

  Modified files:              
    /loncom	lond 
  Log:
  - For legacy courses, where course owner was stored as username instead of 
    username:domain, need to append (not prepend) course domain.
    (for comparison with username:domain of user for whom cloning is needed).
  
  
Index: loncom/lond
diff -u loncom/lond:1.443 loncom/lond:1.444
--- loncom/lond:1.443	Thu Jun 10 19:21:32 2010
+++ loncom/lond	Fri Jun 18 19:19:33 2010
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.443 2010/06/10 19:21:32 www Exp $
+# $Id: lond,v 1.444 2010/06/18 19:19:33 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -58,7 +58,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.443 $'; #' stupid emacs
+my $VERSION='$Revision: 1.444 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -3877,7 +3877,7 @@
                                 if ($items->{'owner'} eq $cloner) {
                                     $canclone = 1;
                                 }
-                            } elsif ($cloner eq $udom.':'.$items->{'owner'}) {
+                            } elsif ($cloner eq $items->{'owner'}.':'.$udom) {
                                 $canclone = 1;
                             }
                             if ($canclone) {