Skip to content

Commit

Permalink
Delete past answers for a user when the user is deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrice1 committed Nov 2, 2023
1 parent 46f2fcf commit 7a7247d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/WeBWorK/DB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ sub deleteUser {
$self->deleteGlobalUserAchievement($userID);
$self->deletePermissionLevel($userID);
$self->deleteKey($userID);
$self->{past_answer}->delete_where({ user_id => $userID });
return $self->{user}->delete($userID);
}

Expand Down

0 comments on commit 7a7247d

Please sign in to comment.