mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:58:27 +00:00
fix (security/gateway): preserve control-ui scopes in bypass mode
This commit is contained in:
@@ -427,7 +427,7 @@ export function attachGatewayWsMessageHandler(params: {
|
||||
close(1008, truncateCloseReason(authMessage));
|
||||
};
|
||||
if (!device) {
|
||||
if (scopes.length > 0) {
|
||||
if (scopes.length > 0 && !allowControlUiBypass) {
|
||||
scopes = [];
|
||||
connectParams.scopes = scopes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user