parent
d7e47a28d4
commit
50b65a517d
2 changed files with 4 additions and 2 deletions
|
@ -103,7 +103,7 @@ func getUserFromArg(s *xorm.Session, arg string) *user.User {
|
||||||
log.Fatalf("Invalid user id: %s", err)
|
log.Fatalf("Invalid user id: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
u, err := user.GetUserByID(s, id)
|
u, err := user.GetUserWithEmail(s, &user.User{ID: id})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Could not get user: %s", err)
|
log.Fatalf("Could not get user: %s", err)
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,9 @@ func DeleteUser(s *xorm.Session, u *user.User) (err error) {
|
||||||
return err
|
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) {
|
func ensureNamespaceAdminUser(s *xorm.Session, n *Namespace) (hadUsers bool, err error) {
|
||||||
|
|
Loading…
Reference in a new issue