--- loncom/homework/lonhomework.pm 2004/02/13 21:21:30 1.163 +++ loncom/homework/lonhomework.pm 2004/02/13 21:27:22 1.164 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.163 2004/02/13 21:21:30 albertel Exp $ +# $Id: lonhomework.pm,v 1.164 2004/02/13 21:27:22 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -267,8 +267,9 @@ sub check_access { my $tries = $Apache::lonhomework::history{"resource.$id.tries"}; my $maxtries = &Apache::lonnet::EXT("resource.$id.maxtries"); if ( $tries eq '' ) { $tries = '0'; } - if ( $maxtries eq '' ) { $maxtries = '2'; } - if ($tries >= $maxtries) { $status = 'CANNOT_ANSWER'; } + if ( $maxtries eq '' && + $ENV{'request.state'} ne 'construct') { $maxtries = '2'; } + if ($maxtries && $tries >= $maxtries) { $status = 'CANNOT_ANSWER'; } # if (correct and show prob status) or excused then CANNOT_ANSWER if(($Apache::lonhomework::history{"resource.$id.solved"}=~/^correct/ &&