diff --git a/api/shellCommand.php b/api/shellCommand.php index 4ba3c60f3..4cbb1b97a 100644 --- a/api/shellCommand.php +++ b/api/shellCommand.php @@ -64,16 +64,6 @@ break; case 'reboot': case 'shutdown': - // Rental PIN is intentionally allowed to perform power actions only. - if (!$isAdmin && !$isRental) { - $data = [ - 'success' => 'false', - 'mode' => 'Unauthorized', - ]; - $logger->debug('message', $data); - echo json_encode($data); - die(); - } $sudoCmd = $mode === 'reboot' ? $config['commands']['reboot'] : $config['commands']['shutdown']; $cmd = 'sudo ' . sprintf($sudoCmd); break;