From a2e2045a967face684ff7c4246ed1277411c1f83 Mon Sep 17 00:00:00 2001 From: David Svantesson Date: Thu, 16 Jan 2020 01:26:55 +0100 Subject: [PATCH] Fix #9662 (#9783) --- routers/repo/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/setting.go b/routers/repo/setting.go index eb4f27e64..80f10cd8a 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -600,7 +600,7 @@ func AddTeamPost(ctx *context.Context) { } name := utils.RemoveUsernameParameterSuffix(strings.ToLower(ctx.Query("team"))) - if len(name) == 0 || ctx.Repo.Owner.LowerName == name { + if len(name) == 0 { ctx.Redirect(ctx.Repo.RepoLink + "/settings/collaboration") return }