Diff for /loncom/homework/lonhomework.pm between versions 1.164 and 1.168

version 1.164, 2004/02/13 21:27:22 version 1.168, 2004/02/16 20:30:34
Line 201  sub check_access { Line 201  sub check_access {
     my $passed;      my $passed;
   
     if ($ENV{'request.state'} eq "construct") {      if ($ENV{'request.state'} eq "construct") {
    if ($ENV{'form.problemstate'}) {
       if ($ENV{'form.problemstate'} =~ /^CANNOT_ANSWER/) {
    if ( ! ($ENV{'form.problemstate'} eq 'CANNOT_ANSWER_correct' &&
    lc($Apache::lonhomework::problemstatus) eq 'no')) {
       return ('CANNOT_ANSWER',
       &mt('is in this state by royal decree.'));
    }
       } else {
    return ($ENV{'form.problemstate'},
    &mt('is in this state by royal decree.'));
       }
    }
  &Apache::lonxml::debug("in construction ignoring dates");   &Apache::lonxml::debug("in construction ignoring dates");
  $status='CAN_ANSWER';   $status='CAN_ANSWER';
  $datemsg=&mt('is in under construction');   $datemsg=&mt('is in under construction');

Removed from v.1.164  
changed lines
  Added in v.1.168


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>