diff options
author | Simon Rettberg | 2019-12-17 15:34:10 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-12-17 15:34:10 +0100 |
commit | 12dff57b1c293b62b3cc3639638b0f577997383b (patch) | |
tree | 9b3e050a2fea4e5cfe242f38b4b0f5d75dae9af2 /modules-available/statistics/pages/machine.inc.php | |
parent | [statistics] Fix Steffens superpatch (diff) | |
download | slx-admin-12dff57b1c293b62b3cc3639638b0f577997383b.tar.gz slx-admin-12dff57b1c293b62b3cc3639638b0f577997383b.tar.xz slx-admin-12dff57b1c293b62b3cc3639638b0f577997383b.zip |
[statistics] Add WOL/exec button to machine details
Diffstat (limited to 'modules-available/statistics/pages/machine.inc.php')
-rw-r--r-- | modules-available/statistics/pages/machine.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php index 9c42160d..7aa91c16 100644 --- a/modules-available/statistics/pages/machine.inc.php +++ b/modules-available/statistics/pages/machine.inc.php @@ -79,7 +79,9 @@ class SubPage if (Module::get('rebootcontrol') !== false) { $client['canReboot'] = (User::hasPermission('.rebootcontrol.action.reboot', (int)$client['locationid'])); $client['canShutdown'] = (User::hasPermission('.rebootcontrol.action.shutdown', (int)$client['locationid'])); - $client['rebootcontrol'] = $client['canReboot'] || $client['canShutdown']; + $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']; } // Baseconfig if (Module::get('baseconfig') !== false |