Skip to content

Commit

Permalink
Modified DB.pm to fix issue openwebwork#68
Browse files Browse the repository at this point in the history
  • Loading branch information
aubreyja committed Nov 6, 2012
1 parent e96d5a5 commit d42b671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/WeBWorK/DB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,10 @@ sub addKey {
my ($userID, $proctorID) = ($1, $2);
croak "addKey: user $userID not found"
# unless $self->{user}->exists($userID);
unless $Key -> key eq "nonce" or $self->{user}->exists($Key->user_id);
unless $Key -> key eq "nonce" or $self->{user}->exists($userID);
croak "addKey: proctor $proctorID not found"
# unless $self->{user}->exists($proctorID);
unless $Key -> key eq "nonce" or $self->{user}->exists($Key->user_id);
unless $Key -> key eq "nonce" or $self->{user}->exists($proctorID);
} else {
croak "addKey: user ", $Key->user_id, " not found"
# unless $self->{user}->exists($Key->user_id);
Expand Down

0 comments on commit d42b671

Please sign in to comment.