From f162a3260430f35864b346892dee4cea150f4442 Mon Sep 17 00:00:00 2001 From: David Svantesson Date: Wed, 15 Jan 2020 14:18:02 +0100 Subject: [PATCH] Fix #9662 (#9767) Co-authored-by: Lunny Xiao --- 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 e5c2a9dbc67..b2330f4ebc3 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -581,7 +581,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 }