Server Policy: Only do owner check if checking for subuser permissions (#1521)

This commit is contained in:
Boy132
2025-07-19 18:52:28 +02:00
committed by GitHub
parent 9f2305f351
commit 62ca53eeaf
4 changed files with 21 additions and 18 deletions

View File

@@ -22,7 +22,8 @@ class SendPowerRequest extends ClientApiRequest
return Permission::ACTION_CONTROL_RESTART;
}
return '__invalid';
// Fallback for invalid signals
return Permission::ACTION_WEBSOCKET_CONNECT;
}
/**