--- loncom/homework/lonhomework.pm 2001/08/17 16:50:04 1.55 +++ loncom/homework/lonhomework.pm 2001/08/18 14:59:38 1.56 @@ -1,7 +1,7 @@ # The LON-CAPA Homework handler # Guy Albertelli # 11/30 Gerd Kortemeyer -# 6/1,8/17 Gerd Kortemeyer +# 6/1,8/17,8/18 Gerd Kortemeyer package Apache::lonhomework; use strict; @@ -132,7 +132,8 @@ sub check_access { if ($tries >= $maxtries) { $status = 'CANNOT_ANSWER'; } } - if (($status ne 'CLOSED') && ($Apache::lonhomework::type eq 'exam')) { + if (($status ne 'CLOSED') && ($Apache::lonhomework::type eq 'exam') && + (!$Apache::lonhomework::history{"resource.0.outtoken"})) { return ('UNCHECKEDOUT','needs to be checked out'); }