mirror of
https://github.com/go-gitea/gitea
synced 2024-12-24 17:44:27 +00:00
Fix add team on collaborator page when same name as organization (#9778)
This commit is contained in:
parent
73c90c26d4
commit
42663a687c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user