зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6dd55c933a
Коммит
cc626c7883
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче