1
0

fix: correctly load and pass the user when deleting it

Fixes #984
This commit is contained in:
kolaente
2021-10-16 17:00:48 +02:00
parent d7e47a28d4
commit 50b65a517d
2 changed files with 4 additions and 2 deletions

View File

@ -167,7 +167,9 @@ func DeleteUser(s *xorm.Session, u *user.User) (err error) {
return err
}
return notifications.Notify(u, &user.AccountDeletedNotification{})
return notifications.Notify(u, &user.AccountDeletedNotification{
User: u,
})
}
func ensureNamespaceAdminUser(s *xorm.Session, n *Namespace) (hadUsers bool, err error) {