--- loncom/auth/lonroles.pm 2005/12/20 19:07:10 1.141 +++ loncom/auth/lonroles.pm 2005/12/22 03:39:36 1.142 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.141 2005/12/20 19:07:10 albertel Exp $ +# $Id: lonroles.pm,v 1.142 2005/12/22 03:39:36 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -271,8 +271,9 @@ ENDENTERKEY '.course.helper.not.run'}) { $furl = "/adm/helper/course.initialization.helper"; # Send the user to the course they selected - } elsif ($env{'request.course.fn'}) { - if ($env{'request.role.adv'}) { + } elsif ($env{'request.course.id'}) { + if (&Apache::lonnet::allowed('whn', + $env{'request.course.id'})) { my $startpage = &courseloadpage($courseid); unless ($startpage eq 'firstres') { $msg = &mt('Entering course ....');