mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 15:24:08 +01:00
fix #1568
This commit is contained in:
parent
2a2a8cd619
commit
1fd5f8edf8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue