diff options
author | David Svantesson <davidsvantesson@gmail.com> | 2020-01-16 01:26:55 +0100 |
---|---|---|
committer | Antoine GIRARD <sapk@users.noreply.github.com> | 2020-01-16 01:26:55 +0100 |
commit | a2e2045a967face684ff7c4246ed1277411c1f83 (patch) | |
tree | 75e64543b60fa05749d85eff79d70b538c900621 | |
parent | b67a023bec82c8c02f85a8d31d6bc520e5ecbf3f (diff) | |
download | gitea-a2e2045a967face684ff7c4246ed1277411c1f83.tar.gz gitea-a2e2045a967face684ff7c4246ed1277411c1f83.zip |
Fix #9662 (#9783)
-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 eb4f27e64b..80f10cd8a8 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 } |