diff options
author | Unknwon <u@gogs.io> | 2015-03-17 21:51:39 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-03-17 21:51:39 -0400 |
commit | 466facc0097bf636b6a945a0daebb7c4c5c33c91 (patch) | |
tree | 614c2782ff5b59dd40cea9a9caadb93d46570258 /routers/org/teams.go | |
parent | 33894591a6d391674e938d018801d88d0011f0b7 (diff) | |
download | gitea-466facc0097bf636b6a945a0daebb7c4c5c33c91.tar.gz gitea-466facc0097bf636b6a945a0daebb7c4c5c33c91.zip |
#1067: Deleting users should remove them from collaborator lists
- fix delete user but repository watches are not decreased
Diffstat (limited to 'routers/org/teams.go')
-rw-r--r-- | routers/org/teams.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/org/teams.go b/routers/org/teams.go index 40345cf7c6..7436e30ee0 100644 --- a/routers/org/teams.go +++ b/routers/org/teams.go @@ -91,7 +91,7 @@ func TeamsAction(ctx *middleware.Context) { } if err != nil { - if err == models.ErrLastOrgOwner { + if models.IsErrLastOrgOwner(err) { ctx.Flash.Error(ctx.Tr("form.last_org_owner")) } else { log.Error(3, "Action(%s): %v", ctx.Params(":action"), err) |