mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-29 21:59:13 +01:00
parent
3ac79b7101
commit
f162a32604
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ func AddTeamPost(ctx *context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
name := utils.RemoveUsernameParameterSuffix(strings.ToLower(ctx.Query("team")))
|
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")
|
ctx.Redirect(ctx.Repo.RepoLink + "/settings/collaboration")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue