[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm

albertel lon-capa-cvs@mail.lon-capa.org
Sun, 23 Mar 2003 08:31:41 -0000


albertel		Sun Mar 23 03:31:41 2003 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  - su was allowed to make dc for invalid domains (hostids)
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.48 loncom/interface/loncreateuser.pm:1.49
--- loncom/interface/loncreateuser.pm:1.48	Thu Feb 13 16:35:50 2003
+++ loncom/interface/loncreateuser.pm	Sun Mar 23 03:31:41 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.48 2003/02/13 21:35:50 albertel Exp $
+# $Id: loncreateuser.pm,v 1.49 2003/03/23 08:31:41 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -46,7 +46,7 @@
 # 05/10,10/16 Gerd Kortemeyer 
 # 02/11/02 Matthew Hall
 #
-# $Id: loncreateuser.pm,v 1.48 2003/02/13 21:35:50 albertel Exp $
+# $Id: loncreateuser.pm,v 1.49 2003/03/23 08:31:41 albertel Exp $
 ###
 
 package Apache::loncreateuser;
@@ -193,7 +193,7 @@
     my $uhome=&Apache::lonnet::homeserver($ccuname,$ccdomain);
     my %incdomains; 
     my %inccourses;
-    foreach (%Apache::lonnet::hostdom) {
+    foreach (values(%Apache::lonnet::hostdom)) {
        $incdomains{$_}=1;
     }
     foreach (keys(%ENV)) {