diff options
author | Corey Hulen <corey@hulen.com> | 2016-10-21 17:19:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-21 17:19:28 -0700 |
commit | 486d12e1c3a5d6658ca0ebd8fd28bec9f6753ce9 (patch) | |
tree | 1833ccb7c0ecfccf1400fa5c8153902d8c058fe0 /model/team.go | |
parent | 38855327502420f06d1235d9ac34a66d0bcbca34 (diff) | |
download | chat-486d12e1c3a5d6658ca0ebd8fd28bec9f6753ce9.tar.gz chat-486d12e1c3a5d6658ca0ebd8fd28bec9f6753ce9.tar.bz2 chat-486d12e1c3a5d6658ca0ebd8fd28bec9f6753ce9.zip |
PLT-4165 removing team name reserved words (#4289)
Diffstat (limited to 'model/team.go')
-rw-r--r-- | model/team.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/team.go b/model/team.go index dccc0219e..38feda325 100644 --- a/model/team.go +++ b/model/team.go @@ -100,7 +100,7 @@ func (o *Team) Etag() string { return Etag(o.Id, o.UpdateAt) } -func (o *Team) IsValid(restrictTeamNames bool) *AppError { +func (o *Team) IsValid() *AppError { if len(o.Id) != 26 { return NewLocAppError("Team.IsValid", "model.team.is_valid.id.app_error", nil, "") @@ -130,7 +130,7 @@ func (o *Team) IsValid(restrictTeamNames bool) *AppError { return NewLocAppError("Team.IsValid", "model.team.is_valid.url.app_error", nil, "id="+o.Id) } - if restrictTeamNames && IsReservedTeamName(o.Name) { + if IsReservedTeamName(o.Name) { return NewLocAppError("Team.IsValid", "model.team.is_valid.reserved.app_error", nil, "id="+o.Id) } |