core: enforce allowRemoteCommand on the host (#7370)

This commit is contained in:
spaced4ndy authored and GitHub committed 2026-08-13 11:56:22 +00:00
1 parent 493fb9cee8
commit 6fcfbd54c5
7 files changed
+25 -15

No files matched your search

+5
View File
@@ -695,6 +695,11 @@ planResolveModeP =
"never" -> pure PRMNever
_ -> fail "bad PlanResolveMode"
data CommandSource
= CSLocal -- entered on this device
| CSRemoteHost RemoteHostId -- forwarded to a paired remote host
| CSRemoteCtrl -- received from a paired remote controller
allowRemoteCommand :: ChatCommand -> Bool -- XXX: consider using Relay/Block/ForceLocal
allowRemoteCommand = \case
StartChat {} -> False