diff options
author | jocuri%softhome.net <> | 2004-10-17 20:07:39 +0200 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-10-17 20:07:39 +0200 |
commit | 43b5d465b7c88fd62447416bddcc501da5a8ef97 (patch) | |
tree | 6080f21d9cff65e745026372f44198d4e8ca309c /editusers.cgi | |
parent | cf9ec9d4d25380d83acfeb998ac9e867baadbdd3 (diff) | |
download | bugzilla-43b5d465b7c88fd62447416bddcc501da5a8ef97.tar.gz bugzilla-43b5d465b7c88fd62447416bddcc501da5a8ef97.tar.xz |
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.
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi index 6d6c844ca..be8154d2e 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -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); |