diff options
author | Simon Rettberg | 2019-12-07 13:52:54 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-12-07 13:52:54 +0100 |
commit | 3e45ec44d22f03ca6642e08f695c6d7274cecfaf (patch) | |
tree | a71b2ec81895b198757d8ec7272548b42ee074b8 /modules-available/statistics/pages/list.inc.php | |
parent | [apis/cron] Simple logging function for debugging (diff) | |
download | slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.tar.gz slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.tar.xz slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.zip |
[statistics/rebootcontrol] Add WOL button to statistics module
* Overhauled task display in rebootcontrol module
* Can only add subnets by CIDR now instead of start and end
Diffstat (limited to 'modules-available/statistics/pages/list.inc.php')
-rw-r--r-- | modules-available/statistics/pages/list.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/list.inc.php b/modules-available/statistics/pages/list.inc.php index d1c9f2e9..f223dfb2 100644 --- a/modules-available/statistics/pages/list.inc.php +++ b/modules-available/statistics/pages/list.inc.php @@ -59,6 +59,7 @@ class SubPage $deleteAllowedLocations = User::getAllowedLocations("machine.delete"); $rebootAllowedLocations = User::getAllowedLocations('.rebootcontrol.action.reboot'); $shutdownAllowedLocations = User::getAllowedLocations('.rebootcontrol.action.reboot'); + $wolAllowedLocations = User::getAllowedLocations('.rebootcontrol.action.wol'); // Only make client clickable if user is allowed to view details page $detailsAllowedLocations = User::getAllowedLocations("machine.view-details"); while ($row = $res->fetch(PDO::FETCH_ASSOC)) { @@ -123,8 +124,9 @@ class SubPage 'canReboot' => !empty($rebootAllowedLocations), 'canShutdown' => !empty($shutdownAllowedLocations), 'canDelete' => !empty($deleteAllowedLocations), + 'canWol' => !empty($wolAllowedLocations), ); Render::addTemplate('clientlist', $data); } -}
\ No newline at end of file +} |