summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2024-09-20 17:08:51 +0200
committerSimon Rettberg2024-09-20 17:08:51 +0200
commit52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168 (patch)
treea4b4b63b19c7660b4bdf4b4e9c09466da9d9a151 /modules-available/statistics/pages
parent[statistics] Ignore HDDS (block devices) that are too small (diff)
downloadslx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.tar.gz
slx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.tar.xz
slx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.zip
[rebootcontrol/statistics] Add templates for useful remote exec commands
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/machine.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php
index 34ed63da..77d9b28e 100644
--- a/modules-available/statistics/pages/machine.inc.php
+++ b/modules-available/statistics/pages/machine.inc.php
@@ -164,12 +164,13 @@ class SubPage
}
}
// Rebootcontrol
- if (Module::get('rebootcontrol') !== false) {
+ if (Module::isAvailable('rebootcontrol')) {
$client['canReboot'] = (User::hasPermission('.rebootcontrol.action.reboot', (int)$client['locationid']));
$client['canShutdown'] = (User::hasPermission('.rebootcontrol.action.shutdown', (int)$client['locationid']));
$client['canWol'] = (User::hasPermission('.rebootcontrol.action.wol', (int)$client['locationid']));
$client['canExec'] = (User::hasPermission('.rebootcontrol.action.exec', (int)$client['locationid']));
$client['rebootcontrol'] = $client['canReboot'] || $client['canShutdown'] || $client['canWol'] || $client['canExec'];
+ $client['execList'] = ExecTemplate::list();
}
// Baseconfig
if (Module::get('baseconfig') !== false