summaryrefslogtreecommitdiffstats
path: root/model/team.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-22 09:19:18 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-22 09:19:18 -0700
commit54894e90ac705eab3bf0f34c8dd197bb0929feae (patch)
tree2fd5c6bc1bdb8cef1ea6095e8f12f8fd73a52ce9 /model/team.go
parentc4c04e5f02253dfdfc2bd09e06955f1f5932ce18 (diff)
parent649f42e3fc706f8fa829276bcdb825381bc703f2 (diff)
downloadchat-54894e90ac705eab3bf0f34c8dd197bb0929feae.tar.gz
chat-54894e90ac705eab3bf0f34c8dd197bb0929feae.tar.bz2
chat-54894e90ac705eab3bf0f34c8dd197bb0929feae.zip
Fixing merge conflict
Diffstat (limited to 'model/team.go')
-rw-r--r--model/team.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/model/team.go b/model/team.go
index 584c78f8d..9da2cd5b2 100644
--- a/model/team.go
+++ b/model/team.go
@@ -97,7 +97,7 @@ func (o *Team) Etag() string {
return Etag(o.Id, o.UpdateAt)
}
-func (o *Team) IsValid() *AppError {
+func (o *Team) IsValid(restrictTeamNames bool) *AppError {
if len(o.Id) != 26 {
return NewAppError("Team.IsValid", "Invalid Id", "")
@@ -127,7 +127,7 @@ func (o *Team) IsValid() *AppError {
return NewAppError("Team.IsValid", "Invalid URL Identifier", "id="+o.Id)
}
- if IsReservedTeamName(o.Name) {
+ if restrictTeamNames && IsReservedTeamName(o.Name) {
return NewAppError("Team.IsValid", "This URL is unavailable. Please try another.", "id="+o.Id)
}