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

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 05 Jun 2002 18:11:15 -0000


matthew		Wed Jun  5 14:11:15 2002 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  Only check mau authorization in the target users domain, not the current
  domain and the targets domain.
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.35 loncom/interface/loncreateuser.pm:1.36
--- loncom/interface/loncreateuser.pm:1.35	Mon Apr 29 10:47:57 2002
+++ loncom/interface/loncreateuser.pm	Wed Jun  5 14:11:15 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.35 2002/04/29 14:47:57 matthew Exp $
+# $Id: loncreateuser.pm,v 1.36 2002/06/05 18:11:15 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -47,7 +47,7 @@
 # 11/12,11/13,11/15 Scott Harrison
 # 02/11/02 Matthew Hall
 #
-# $Id: loncreateuser.pm,v 1.35 2002/04/29 14:47:57 matthew Exp $
+# $Id: loncreateuser.pm,v 1.36 2002/06/05 18:11:15 matthew Exp $
 ###
 
 package Apache::loncreateuser;
@@ -589,7 +589,7 @@
 	    return;
 	}
 	# Only allow authentification modification if the person has authority
-	if (&Apache::lonnet::allowed('mau',$ENV{'user.domain'})) {
+	if (&Apache::lonnet::allowed('mau',$ENV{'form.ccdomain'})) {
 	    $r->print('Modifying authentication: '.
                       &Apache::lonnet::modifyuserauth(
 		       $ENV{'form.ccdomain'},$ENV{'form.ccuname'},