1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
David Svantesson 2020-01-15 14:18:02 +01:00 committed by Antoine GIRARD
parent 3ac79b7101
commit f162a32604

View file

@ -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
}