Skip to content

Commit 4d5e394

Browse files
fix(devices): enforce the retry scope in RPC dispatch
1 parent db591e5 commit 4d5e394

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/server/src/ws.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3456,7 +3456,10 @@ const makeWsRpcLayer = (
34563456
[WS_METHODS.deviceList]: (input) =>
34573457
observeRpcEffect(
34583458
WS_METHODS.deviceList,
3459-
input.retryHostId ? deviceService.retryHost(input.retryHostId) : deviceService.list,
3459+
authorizeEffect(
3460+
requiredScopeForDeviceList(input),
3461+
input.retryHostId ? deviceService.retryHost(input.retryHostId) : deviceService.list,
3462+
),
34603463
{
34613464
"rpc.aggregate": "device",
34623465
},

0 commit comments

Comments
 (0)