[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm
raeburn
raeburn@source.lon-capa.org
Tue, 29 Dec 2009 20:00:26 -0000
raeburn Tue Dec 29 20:00:26 2009 EDT
Modified files:
/loncom/interface loncreateuser.pm
Log:
- environment.canrequest is either 0 or 1.
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.330 loncom/interface/loncreateuser.pm:1.331
--- loncom/interface/loncreateuser.pm:1.330 Tue Dec 15 16:40:31 2009
+++ loncom/interface/loncreateuser.pm Tue Dec 29 20:00:26 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Create a user
#
-# $Id: loncreateuser.pm,v 1.330 2009/12/15 16:40:31 bisitz Exp $
+# $Id: loncreateuser.pm,v 1.331 2009/12/29 20:00:26 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2680,8 +2680,7 @@
$newenvhash{'environment.requestcourses.'.$key} =
$changeHash{'requestcourses.'.$key};
if ($changeHash{'requestcourses.'.$key} ne '') {
- $newenvhash{'environment.canrequest.'.$key} =
- $changeHash{'requestcourses.'.$key};
+ $newenvhash{'environment.canrequest.'.$key} = 1
} else {
$newenvhash{'environment.canrequest.'.$key} =
&Apache::lonnet::usertools_access($env{'user.name'},$env{'user.domain'},