--- loncom/interface/selfenroll.pm 2008/03/08 04:26:12 1.1 +++ loncom/interface/selfenroll.pm 2008/03/12 02:45:07 1.2 @@ -1,7 +1,7 @@ # The LearningOnline Network # Allow users to self-enroll in a course # -# $Id: selfenroll.pm,v 1.1 2008/03/08 04:26:12 raeburn Exp $ +# $Id: selfenroll.pm,v 1.2 2008/03/12 02:45:07 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -312,7 +312,7 @@ sub process_self_enroll { $area); &Apache::lonnet::set_userprivs(\%userroles,\%newrole,%newgroups); $userroles{'user.role.'.$spec} = $selfenroll_access_start.'.'.$selfenroll_access_end; - &Apache::lonnet::appenv(%userroles); + &Apache::lonnet::appenv(\%userroles,[$role]); if ($selfenroll_access_end && $selfenroll_access_end <= $now) { $r->print(&mt('The end date for access to this course for users who self-enroll has passed.').'
'.&mt('Consequently, although a new role was created for you in the course, it is an inactive role which does not provide access to the course.')); } else {