Patch for bug 261434: implement functionality to delete a user semi-properly (only works for users with no bugs/comments); patch by Ivan Todoroski <grnch@gmx.net>; r=justdave, a=justdave.

This commit is contained in:
jocuri%softhome.net 2004-10-17 11:07:39 +00:00
parent d73ffa47db
commit 6976bb0f22

View File

@ -645,9 +645,11 @@ if ($action eq 'delete') {
WHERE login_name=" . SqlQuote($user));
my $userid = FetchOneColumn();
Bugzilla->logout_user_by_id($userid);
SendSQL("DELETE FROM profiles
WHERE login_name=" . SqlQuote($user));
Bugzilla->logout_user_by_id($userid);
SendSQL("DELETE FROM user_group_map
WHERE user_id=" . $userid);
print "User deleted.<BR>\n";
PutTrailer($localtrailer);