mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Minor fix for #2530
This commit is contained in:
@ -105,8 +105,7 @@ func HandleOrgAssignment(ctx *Context, args ...bool) {
|
||||
if len(teamName) > 0 {
|
||||
teamExists := false
|
||||
for _, team := range org.Teams {
|
||||
|
||||
if strings.ToLower(team.Name) == strings.ToLower(teamName) {
|
||||
if team.LowerName == strings.ToLower(teamName) {
|
||||
teamExists = true
|
||||
ctx.Org.Team = team
|
||||
ctx.Org.IsTeamMember = true
|
||||
|
Reference in New Issue
Block a user