--- loncom/interface/loncreateuser.pm 2009/12/29 20:07:08 1.295.2.15 +++ loncom/interface/loncreateuser.pm 2009/09/23 03:49:13 1.295.8.2 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Create a user # -# $Id: loncreateuser.pm,v 1.295.2.15 2009/12/29 20:07:08 raeburn Exp $ +# $Id: loncreateuser.pm,v 1.295.8.2 2009/09/23 03:49:13 gci Exp $ # # Copyright Michigan State University Board of Trustees # @@ -234,7 +234,7 @@ sub build_tools_display { if ($context eq 'requestcourses') { %userenv = &Apache::lonnet::userenvironment($ccdomain,$ccuname, 'requestcourses.official','requestcourses.unofficial'); - @usertools = ('official','unofficial'); + @usertools = ('unofficial'); @options =('norequest','approval','autolimit','validate'); %validations = &Apache::lonnet::auto_courserequest_checks($ccdomain); %reqtitles = &courserequest_titles(); @@ -376,7 +376,7 @@ sub coursereq_externaluser { %userenv = &Apache::lonnet::userenvironment($ccdomain,$ccuname, 'reqcrsotherdom.official','reqcrsotherdom.unofficial', 'reqcrsotherdom.community'); - @usertools = ('official','unofficial','community'); + @usertools = ('unofficial'); @options = ('approval','validate','autolimit'); %validations = &Apache::lonnet::auto_courserequest_checks($cdom); my $optregex = join('|',@options); @@ -2498,7 +2498,8 @@ sub update_user_data { $newenvhash{'environment.requestcourses.'.$key} = $changeHash{'requestcourses.'.$key}; if ($changeHash{'requestcourses.'.$key} ne '') { - $newenvhash{'environment.canrequest.'.$key} = 1; + $newenvhash{'environment.canrequest.'.$key} = + $changeHash{'requestcourses.'.$key}; } else { $newenvhash{'environment.canrequest.'.$key} = &Apache::lonnet::usertools_access($env{'user.name'},$env{'user.domain'},