mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 02:40:24 +00:00
Fix Control UI operator.read scope handling (#53110)
Preserve Control UI scopes through the device-auth bypass path, normalize implied operator device-auth scopes, ignore cached under-scoped operator tokens, and degrade read-backed main pages gracefully when a connection truly lacks operator.read. Co-authored-by: Val Alexander <68980965+BunsDev@users.noreply.github.com>
This commit is contained in:
@@ -542,7 +542,8 @@ export function attachGatewayWsMessageHandler(params: {
|
||||
if (
|
||||
!device &&
|
||||
(decision.kind !== "allow" ||
|
||||
(!preserveInsecureLocalControlUiScopes &&
|
||||
(!controlUiAuthPolicy.allowBypass &&
|
||||
!preserveInsecureLocalControlUiScopes &&
|
||||
(authMethod === "token" || authMethod === "password" || trustedProxyAuthOk)))
|
||||
) {
|
||||
clearUnboundScopes();
|
||||
|
||||
Reference in New Issue
Block a user