github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/app/data_retention.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See LICENSE.txt for license information. 3 4 package app 5 6 import ( 7 "net/http" 8 9 "github.com/vnforks/kid/v5/model" 10 ) 11 12 func (a *App) GetDataRetentionPolicy() (*model.DataRetentionPolicy, *model.AppError) { 13 if a.DataRetention() == nil { 14 return nil, model.NewAppError("App.GetDataRetentionPolicy", "ent.data_retention.generic.license.error", nil, "", http.StatusNotImplemented) 15 } 16 17 return a.DataRetention().GetPolicy() 18 }