aboutsummaryrefslogtreecommitdiffstats
path: root/services/context/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/context/org.go')
-rw-r--r--services/context/org.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/context/org.go b/services/context/org.go
index c8b6ed09b7..1cd8923178 100644
--- a/services/context/org.go
+++ b/services/context/org.go
@@ -208,7 +208,7 @@ func OrgAssignment(opts OrgAssignmentOptions) func(ctx *Context) {
if len(teamName) > 0 {
teamExists := false
for _, team := range ctx.Org.Teams {
- if team.LowerName == strings.ToLower(teamName) {
+ if strings.EqualFold(team.LowerName, teamName) {
teamExists = true
ctx.Org.Team = team
ctx.Org.IsTeamMember = true