From c1963dbd3e2a34c44b5d0070f5ae0b7b43deda52 Mon Sep 17 00:00:00 2001 From: Nils Bosbach Date: Sun, 12 Jul 2026 12:16:17 +0200 Subject: [PATCH] fix power actions always allow power options if login is disabled. Signed-off-by: Nils Bosbach --- api/shellCommand.php | 10 ---------- 1 file changed, 10 deletions(-) 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;