--- loncom/homework/lonhomework.pm 2006/05/16 21:21:32 1.248 +++ loncom/homework/lonhomework.pm 2006/06/08 22:33:57 1.249 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.248 2006/05/16 21:21:32 albertel Exp $ +# $Id: lonhomework.pm,v 1.249 2006/06/08 22:33:57 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -170,9 +170,14 @@ sub proctor_checked_in { } elsif ($type eq 'problem') { $key ='resource.0.checkedin'; } - + # backward compatability, used to be username@domain, + # now is username:domain + my $who = $Apache::lonhomework::history{$key}; + if ($who !~ /:/) { + $who =~ tr/@/:/; + } foreach my $possible (@possible_proctors) { - if ($Apache::lonhomework::history{$key} eq $possible + if ($who eq $possible && $Apache::lonhomework::history{$key.'.slot'} eq $slot_name) { return 1; }