diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-13 05:27:01 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-13 05:27:01 -0500 |
commit | 9e2284048372864a7dbc5e192877ebdca04abcab (patch) | |
tree | 82b98f331ef96b3eff144d4fe48b9504ffd247dc /routers/user/setting.go | |
parent | 8eb5120fbd19dac1221f82d84c339b4be9b0975b (diff) | |
download | gitea-9e2284048372864a7dbc5e192877ebdca04abcab.tar.gz gitea-9e2284048372864a7dbc5e192877ebdca04abcab.zip |
fix #622
Diffstat (limited to 'routers/user/setting.go')
-rw-r--r-- | routers/user/setting.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go index 74a3113af0..bb0fa9103e 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -311,6 +311,9 @@ func SettingsDelete(ctx *middleware.Context) { case models.ErrUserOwnRepos: ctx.Flash.Error(ctx.Tr("form.still_own_repo")) ctx.Redirect(setting.AppSubUrl + "/user/settings/delete") + case models.ErrUserHasOrgs: + ctx.Flash.Error(ctx.Tr("form.still_has_org")) + ctx.Redirect(setting.AppSubUrl + "/user/settings/delete") default: ctx.Handle(500, "DeleteUser", err) } |