handleUserDelete: delete the correct user
Prior to this, we deleted the user issuing the deletion rather than the user which should've been deleted. git-svn-id: file:///srv/svn/repo/suika/trunk@508 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
parent
7bfba6f771
commit
e3c909c007
@ -699,7 +699,7 @@ func handleUserDelete(dc *downstreamConn, params []string) error {
|
|||||||
|
|
||||||
u.stop()
|
u.stop()
|
||||||
|
|
||||||
if err := dc.srv.db.DeleteUser(dc.user.ID); err != nil {
|
if err := dc.srv.db.DeleteUser(u.ID); err != nil {
|
||||||
return fmt.Errorf("failed to delete user: %v", err)
|
return fmt.Errorf("failed to delete user: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user