--- loncom/auth/lonroles.pm 2004/02/19 21:45:22 1.86 +++ loncom/auth/lonroles.pm 2004/03/09 21:01:55 1.88 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.86 2004/02/19 21:45:22 albertel Exp $ +# $Id: lonroles.pm,v 1.88 2004/03/09 21:01:55 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -142,6 +142,10 @@ ENDENTERKEY } } } + &Apache::lonnet::log($ENV{'user.domain'}, + $ENV{'user.name'}, + $ENV{'user.home'}, + "Role ".$trolecode); my $tadv=0; if (($trolecode!~/^st/) && ($trolecode!~/^ta/) && @@ -525,7 +529,7 @@ ENDHEADER $r->print(''); return OK; # Is there only one choice? - } elsif ($countactive==1) { + } elsif (($countactive==1) && ($ENV{'request.role'} eq 'cm')) { $r->print('

'.&mt('Please stand by.').'

'. ''); $r->print("\n");