summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorDavid Svantesson <davidsvantesson@gmail.com>2020-01-15 14:18:02 +0100
committerAntoine GIRARD <sapk@users.noreply.github.com>2020-01-15 14:18:02 +0100
commitf162a3260430f35864b346892dee4cea150f4442 (patch)
treeb0b32ea96907e94b471c6699da88e8c97f5ed7b0 /routers
parent3ac79b7101f8d84eab1c956676b39b9709cd6a51 (diff)
downloadgitea-f162a3260430f35864b346892dee4cea150f4442.tar.gz
gitea-f162a3260430f35864b346892dee4cea150f4442.zip
Fix #9662 (#9767)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index e5c2a9dbc6..b2330f4ebc 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
}