summaryrefslogtreecommitdiffstats
path: root/app/compliance.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/compliance.go')
-rw-r--r--app/compliance.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/compliance.go b/app/compliance.go
index ffef69b44..966b9b523 100644
--- a/app/compliance.go
+++ b/app/compliance.go
@@ -11,12 +11,12 @@ import (
"github.com/mattermost/platform/utils"
)
-func GetComplianceReports() (model.Compliances, *model.AppError) {
+func GetComplianceReports(page, perPage int) (model.Compliances, *model.AppError) {
if !*utils.Cfg.ComplianceSettings.Enable || !utils.IsLicensed || !*utils.License.Features.Compliance {
return nil, model.NewLocAppError("GetComplianceReports", "ent.compliance.licence_disable.app_error", nil, "")
}
- if result := <-Srv.Store.Compliance().GetAll(); result.Err != nil {
+ if result := <-Srv.Store.Compliance().GetAll(page*perPage, perPage); result.Err != nil {
return nil, result.Err
} else {
return result.Data.(model.Compliances), nil