diff options
Diffstat (limited to 'app/data_retention.go')
-rw-r--r-- | app/data_retention.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/data_retention.go b/app/data_retention.go new file mode 100644 index 000000000..b931ca8b1 --- /dev/null +++ b/app/data_retention.go @@ -0,0 +1,18 @@ +// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package app + +import ( + "net/http" + + "github.com/mattermost/mattermost-server/model" +) + +func (a *App) GetDataRetentionPolicy() (*model.DataRetentionPolicy, *model.AppError) { + if a.DataRetention == nil { + return nil, model.NewAppError("App.GetDataRetentionPolicy", "ent.data_retention.generic.license.error", nil, "", http.StatusNotImplemented) + } + + return a.DataRetention.GetPolicy() +} |