--- loncom/auth/lonroles.pm 2002/08/28 14:11:27 1.42 +++ loncom/auth/lonroles.pm 2002/08/31 00:43:12 1.43 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.42 2002/08/28 14:11:27 www Exp $ +# $Id: lonroles.pm,v 1.43 2002/08/31 00:43:12 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -118,16 +118,17 @@ sub handler { &Apache::loncommon::no_cache($r); $r->send_http_header; my $swinfo=&Apache::lonmenu::rawconfig($r); + my $bodytag=&Apache::loncommon::bodytag('Switching Role'); print (<Entering Course - +$bodytag -$msg +

$msg

ENDREDIR @@ -329,7 +330,8 @@ $trest,$tdom); my %newhash=Apache::lonnet::coursedescription ($tcourseid); if (%newhash) { - $twhere=$newhash{'description'}; + $twhere= +&Apache::loncommon::syllabuswrapper($newhash{'description'},$trest,$tdom); } else { $twhere='Currently not available'; $ENV{'course.'.$tcourseid.'.description'}=$twhere; @@ -389,7 +391,7 @@ $trest,$tdom); $r->print("\n"); } # ------------------------------------------------------------ Privileges Info - if ($advanced) { + if (($advanced) && (($ENV{'user.error.msg'}) || ($error))) { $r->print('

Current Privileges

'); foreach $envkey (sort keys %ENV) {