Skip to content

Commit f162a32

Browse files
davidsvantessonlunny
authored andcommitted
Fix #9662 (#9767)
Co-authored-by: Lunny Xiao <[email protected]>
1 parent 3ac79b7 commit f162a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ func AddTeamPost(ctx *context.Context) {
581581
}
582582

583583
name := utils.RemoveUsernameParameterSuffix(strings.ToLower(ctx.Query("team")))
584-
if len(name) == 0 || ctx.Repo.Owner.LowerName == name {
584+
if len(name) == 0 {
585585
ctx.Redirect(ctx.Repo.RepoLink + "/settings/collaboration")
586586
return
587587
}

0 commit comments

Comments
 (0)