fix(gateway): block node role when device identity is missing

This commit is contained in:
Peter Steinberger
2026-02-21 19:34:00 +01:00
parent 764b1f2932
commit ddcb2d79b1
3 changed files with 24 additions and 1 deletions

View File

@@ -490,7 +490,7 @@ export function attachGatewayWsMessageHandler(params: {
return true;
}
clearUnboundScopes();
const canSkipDevice = sharedAuthOk;
const canSkipDevice = role === "operator" && sharedAuthOk;
if (isControlUi && !controlUiAuthPolicy.allowBypass) {
const errorMessage =