release/v1.15
Unknwon 2015-09-03 03:58:44 -04:00
parent 2a2a8cd619
commit 1fd5f8edf8
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ func DeleteUser(u *User) error {
return fmt.Errorf("clear assignee: %v", err)
}
if _, err = sess.Delete(u); err != nil {
if _, err = sess.Id(u.Id).Delete(new(User)); err != nil {
return fmt.Errorf("Delete: %v", err)
}