summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-04 13:03:34 -0500
committerUnknwon <u@gogs.io>2016-02-04 13:03:34 -0500
commitddf9fa06c7725820176ae75ae0b7e85c25f2886b (patch)
treefeaef1756f9cf6b587bdade4109dd31722ad0726 /modules
parent739d5aa1d32229769acbdf53bd99222d13441b47 (diff)
downloadgitea-ddf9fa06c7725820176ae75ae0b7e85c25f2886b.tar.gz
gitea-ddf9fa06c7725820176ae75ae0b7e85c25f2886b.zip
Minor fix for #2530
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