Browse Source

fix #1568

pull/1524/merge
Unknwon 9 years ago
parent
commit
1fd5f8edf8
  1. 2
      models/user.go

2
models/user.go

@ -632,7 +632,7 @@ func DeleteUser(u *User) error {
return fmt.Errorf("clear assignee: %v", err) 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) return fmt.Errorf("Delete: %v", err)
} }

Loading…
Cancel
Save