diff --git a/code/web/services/Admin/AbstractUsageGraphs.php b/code/web/services/Admin/AbstractUsageGraphs.php index 212713cca4..10006aae9e 100644 --- a/code/web/services/Admin/AbstractUsageGraphs.php +++ b/code/web/services/Admin/AbstractUsageGraphs.php @@ -33,4 +33,11 @@ protected function launchGraph(string $sectionName): void { $this->display('usage-graph.tpl', $graphTitle); } + public function canView(): bool { + return UserAccount::userHasPermission([ + 'View Dashboards', + 'View System Reports', + ]); + } + } \ No newline at end of file diff --git a/code/web/services/Admin/UsageGraphs.php b/code/web/services/Admin/UsageGraphs.php index 2b600a3b96..36d48a81ff 100644 --- a/code/web/services/Admin/UsageGraphs.php +++ b/code/web/services/Admin/UsageGraphs.php @@ -21,12 +21,6 @@ function getActiveAdminSection(): string { return 'system_reports'; } - function canView(): bool { - return UserAccount::userHasPermission([ - 'View Dashboards', - 'View System Reports', - ]); - } public function buildCSV() { global $interface;