mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
Minor fix for #2530
This commit is contained in:
1 parent
739d5aa1d3
commit
ddf9fa06c7
2 files changed
+32
-31
No files matched your search
@@ -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