--- loncom/auth/lonroles.pm 2003/05/21 20:10:53 1.57 +++ loncom/auth/lonroles.pm 2003/06/03 14:08:32 1.58 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.57 2003/05/21 20:10:53 www Exp $ +# $Id: lonroles.pm,v 1.58 2003/06/03 14:08:32 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -156,6 +156,19 @@ ENDENTERKEY $msg= '

Could not initialize top-level map.

'; } + + # Check to see if the user is a CC entering a course + # for the first time + my (undef, undef, $role, $courseid) = split(/\./, $envkey); + if (substr($courseid, 0, 1) eq '/') { + $courseid = substr($courseid, 1); + } + $courseid =~ s/\//_/; + if ($role eq 'cc' && $ENV{'course.' . $courseid . + '.course.helper.not.run'}) { + $furl = "/adm/helper/course.initialization.helper"; + } + $r->content_type('text/html'); &Apache::loncommon::no_cache($r); $r->send_http_header;