diff options
author | David Svantesson <davidsvantesson@gmail.com> | 2020-01-15 14:18:02 +0100 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2020-01-15 14:18:02 +0100 |
commit | f162a3260430f35864b346892dee4cea150f4442 (patch) | |
tree | b0b32ea96907e94b471c6699da88e8c97f5ed7b0 /routers | |
parent | 3ac79b7101f8d84eab1c956676b39b9709cd6a51 (diff) | |
download | gitea-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.go | 2 |
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 } |