--- loncom/homework/structuretags.pm 2004/09/18 17:29:29 1.268 +++ loncom/homework/structuretags.pm 2004/09/20 15:57:11 1.269 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.268 2004/09/18 17:29:29 albertel Exp $ +# $Id: structuretags.pm,v 1.269 2004/09/20 15:57:11 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -882,7 +882,7 @@ sub start_instructorcomment { if ($target eq 'web' || $target eq 'grade' || $target eq 'answer' || $target eq 'tex' || $target eq 'analyze') { $result=($ENV{'request.role'}=~/^(in|cc|au|ca|li)/); - if ( ! $result ) { + if ( (! $result) or ($ENV{'form.instructor_comments'} eq 'hide')) { my $skip=&Apache::lonxml::get_all_text("/instructorcomment", $parser,$style); &Apache::lonxml::debug("skipping ahead :$skip: $$parser[-1]");