summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2024-11-27 12:58:24 +0100
committerSimon Rettberg2024-11-27 12:58:24 +0100
commit3c9a308474586de2f5fceb75905d122035dd2485 (patch)
treeba77ec8428413b2124f29d981f7afe6078ed48be /modules-available/statistics/pages
parent[vmstore] Adapt server-side part to ajax benchmark result display (diff)
downloadslx-admin-3c9a308474586de2f5fceb75905d122035dd2485.tar.gz
slx-admin-3c9a308474586de2f5fceb75905d122035dd2485.tar.xz
slx-admin-3c9a308474586de2f5fceb75905d122035dd2485.zip
[statistics] machine details: add button to run network speedtest
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/machine.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php
index 77d9b28e..aeb5519c 100644
--- a/modules-available/statistics/pages/machine.inc.php
+++ b/modules-available/statistics/pages/machine.inc.php
@@ -171,6 +171,9 @@ class SubPage
$client['canExec'] = (User::hasPermission('.rebootcontrol.action.exec', (int)$client['locationid']));
$client['rebootcontrol'] = $client['canReboot'] || $client['canShutdown'] || $client['canWol'] || $client['canExec'];
$client['execList'] = ExecTemplate::list();
+ if (Module::get('vmstore') !== false) {
+ $client['canBenchmark'] = (User::hasPermission('.vmstore.benchmark', (int)$client['locationid']));
+ }
}
// Baseconfig
if (Module::get('baseconfig') !== false