Commit 43b5d465 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 261434: implement functionality to delete a user semi-properly…

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.
parent cf9ec9d4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment