--- loncom/homework/response.pm 2005/04/01 18:08:14 1.117 +++ loncom/homework/response.pm 2005/04/04 10:04:09 1.118 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.117 2005/04/01 18:08:14 albertel Exp $ +# $Id: response.pm,v 1.118 2005/04/04 10:04:09 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -513,8 +513,9 @@ sub answer_footer { sub showallfoils { if (defined($ENV{'form.showallfoils'})) { my ($symb)=&Apache::lonxml::whichuser(); - if ($ENV{'request.state'} eq 'construct' || - $ENV{'user.adv'} ) { + if (($ENV{'request.state'} eq 'construct') || + ($ENV{'user.adv'} && $symb eq '') || + ($Apache::lonhomework::viewgrades) ) { return 1; } }