From 486d12e1c3a5d6658ca0ebd8fd28bec9f6753ce9 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Fri, 21 Oct 2016 17:19:28 -0700 Subject: PLT-4165 removing team name reserved words (#4289) --- model/team.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'model/team.go') 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) } -- cgit v1.2.3-1-g7c22