diff options
Diffstat (limited to 'model')
-rw-r--r-- | model/team.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/model/team.go b/model/team.go index edf9d3a41..530c3fd6a 100644 --- a/model/team.go +++ b/model/team.go @@ -47,6 +47,7 @@ type TeamPatch struct { DisplayName *string `json:"display_name"` Description *string `json:"description"` CompanyName *string `json:"company_name"` + AllowedDomains *string `json:"allowed_domains"` InviteId *string `json:"invite_id"` AllowOpenInvite *bool `json:"allow_open_invite"` } @@ -241,7 +242,6 @@ func CleanTeamName(s string) string { func (o *Team) Sanitize() { o.Email = "" - o.AllowedDomains = "" } func (t *Team) Patch(patch *TeamPatch) { @@ -257,6 +257,10 @@ func (t *Team) Patch(patch *TeamPatch) { t.CompanyName = *patch.CompanyName } + if patch.AllowedDomains != nil { + t.AllowedDomains = *patch.AllowedDomains + } + if patch.InviteId != nil { t.InviteId = *patch.InviteId } |