Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
  • Loading branch information
2 people authored and sapk committed Jan 15, 2020
1 parent 3ac79b7 commit f162a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/repo/setting.go
Expand Up @@ -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
}
Expand Down

0 comments on commit f162a32

Please sign in to comment.