summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/org.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/middleware/org.go b/modules/middleware/org.go
index eb71020e69..e62e0b0b01 100644
--- a/modules/middleware/org.go
+++ b/modules/middleware/org.go
@@ -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