Minor fix for #2530

This commit is contained in:
Unknwon committed 2016-02-04 13:03:34 -05:00
1 parent 739d5aa1d3
commit ddf9fa06c7
2 files changed
+32 -31

No files matched your search

+1 -2
View File
@@ -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