mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
19 lines
507 B
Go
19 lines
507 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package app
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/mattermost/mattermost-server/v5/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()
|
|
}
|