diff options
author | Wim <wim@42.be> | 2017-01-16 23:59:50 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-01-17 00:00:26 +0100 |
commit | 93114b76828357644afb22f7359c0ba185719478 (patch) | |
tree | aaaf5f855256b3750ee6e5b0c082a5bca0f0dd20 /vendor/github.com/mattermost/platform/model/team.go | |
parent | 9987ac3f13671bf6c4e1530544afa865035b0efd (diff) | |
download | matterbridge-msglm-93114b76828357644afb22f7359c0ba185719478.tar.gz matterbridge-msglm-93114b76828357644afb22f7359c0ba185719478.tar.bz2 matterbridge-msglm-93114b76828357644afb22f7359c0ba185719478.zip |
Sync with mattermost 3.6.0
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/team.go')
-rw-r--r-- | vendor/github.com/mattermost/platform/model/team.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/platform/model/team.go b/vendor/github.com/mattermost/platform/model/team.go index d54a809f..3f05ce83 100644 --- a/vendor/github.com/mattermost/platform/model/team.go +++ b/vendor/github.com/mattermost/platform/model/team.go @@ -24,6 +24,7 @@ type Team struct { DeleteAt int64 `json:"delete_at"` DisplayName string `json:"display_name"` Name string `json:"name"` + Description string `json:"description"` Email string `json:"email"` Type string `json:"type"` CompanyName string `json:"company_name"` @@ -130,6 +131,10 @@ func (o *Team) IsValid() *AppError { return NewLocAppError("Team.IsValid", "model.team.is_valid.url.app_error", nil, "id="+o.Id) } + if len(o.Description) > 255 { + return NewLocAppError("Team.IsValid", "model.team.is_valid.description.app_error", nil, "id="+o.Id) + } + if IsReservedTeamName(o.Name) { return NewLocAppError("Team.IsValid", "model.team.is_valid.reserved.app_error", nil, "id="+o.Id) } |