summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules-available/statistics/page.inc.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/modules-available/statistics/page.inc.php b/modules-available/statistics/page.inc.php
index 441f0c25..4a282515 100644
--- a/modules-available/statistics/page.inc.php
+++ b/modules-available/statistics/page.inc.php
@@ -898,12 +898,8 @@ class Page_Statistics extends Page
}
// Rebootcontrol
if (Module::get('rebootcontrol') !== false) {
- if (User::hasPermission('.rebootcontrol.action.reboot', (int)$client['locationid'])) {
- $client['canReboot'] = true;
- }
- if (User::hasPermission('.rebootcontrol.action.shutdown', (int)$client['locationid'])) {
- $client['canShutdown'] = true;
- }
+ $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'];
}
// Baseconfig