diff options
author | Unknwon <u@gogs.io> | 2015-09-03 03:58:44 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-03 03:58:44 -0400 |
commit | 1fd5f8edf85646d028aaa5bf8abc35fcab41dbe7 (patch) | |
tree | d76970ca571b3fbf6612ccf9ff6b1ff3b36fa49b /models/user.go | |
parent | 2a2a8cd619c5c11300d0dc6d800dfe609ba03a14 (diff) | |
download | gitea-1fd5f8edf85646d028aaa5bf8abc35fcab41dbe7.tar.gz gitea-1fd5f8edf85646d028aaa5bf8abc35fcab41dbe7.zip |
fix #1568
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 9c9345c20b..423b30f16e 100644 --- a/models/user.go +++ b/models/user.go @@ -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) } |