Uncaching the user should be last thing that is done before removing data from the database.
This commit is contained in:
parent
3d79b8b26c
commit
196d3b0437
1 changed files with 1 additions and 1 deletions
|
|
@ -380,7 +380,6 @@ sub delete {
|
||||||
my $userId = $self->userId;
|
my $userId = $self->userId;
|
||||||
my $session = $self->session;
|
my $session = $self->session;
|
||||||
my $db = $session->db;
|
my $db = $session->db;
|
||||||
$self->uncache;
|
|
||||||
|
|
||||||
foreach my $groupId ( @{ $self->getGroups } ) {
|
foreach my $groupId ( @{ $self->getGroups } ) {
|
||||||
my $group = WebGUI::Group->new($session, $groupId);
|
my $group = WebGUI::Group->new($session, $groupId);
|
||||||
|
|
@ -429,6 +428,7 @@ sub delete {
|
||||||
$credit->purge;
|
$credit->purge;
|
||||||
|
|
||||||
# remove user itself
|
# remove user itself
|
||||||
|
$self->uncache;
|
||||||
$db->write("DELETE FROM userProfileData WHERE userId=?",[$userId]);
|
$db->write("DELETE FROM userProfileData WHERE userId=?",[$userId]);
|
||||||
$db->write("DELETE FROM users WHERE userId=?",[$userId]);
|
$db->write("DELETE FROM users WHERE userId=?",[$userId]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue