--- loncom/homework/response.pm 2004/08/29 07:49:35 1.101 +++ loncom/homework/response.pm 2004/09/09 08:59:56 1.102 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.101 2004/08/29 07:49:35 albertel Exp $ +# $Id: response.pm,v 1.102 2004/09/09 08:59:56 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -500,12 +500,14 @@ sub answer_footer { } sub showallfoils { - my $return=0; - if (defined($ENV{'form.showallfoils'}) && - $ENV{'request.state'} eq 'construct') { - $return=1; + if (defined($ENV{'form.showallfoils'})) { + my ($symb)=&Apache::lonxml::whichuser(); + if ($ENV{'request.state'} eq 'construct' || + ($ENV{'user.adv'} && $symb eq '')) { + return 1; + } } - return $return; + return 0; } sub getresponse {