--- loncom/homework/lonhomework.pm 2004/02/13 21:27:22 1.164 +++ loncom/homework/lonhomework.pm 2004/02/16 18:40:52 1.166 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.164 2004/02/13 21:27:22 albertel Exp $ +# $Id: lonhomework.pm,v 1.166 2004/02/16 18:40:52 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -201,6 +201,14 @@ sub check_access { my $passed; if ($ENV{'request.state'} eq "construct") { + if ($ENV{'form.problemstatus'}) { + if ($ENV{'form.problemstate'} =~ /^CANNOT_ANSWER/) { + return ('CANNOT_ANSWER','is in this state by royal decree.'); + } else { + return ($ENV{'form.problemstate'}, + 'is in this state by royal decree.'); + } + } &Apache::lonxml::debug("in construction ignoring dates"); $status='CAN_ANSWER'; $datemsg=&mt('is in under construction'); 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.