From fedb0f2afa552747a45b6b7c362a7977923e67ff Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Thu, 24 Sep 2026 11:40:47 +0200 Subject: refactor(node): move operator authority and the admin response out of webrtc_server AdminMixin in transport/webrtc/admin.py: who the operator is, the signed challenge, signature checks, and _do_admin_response moved unchanged. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/src/meshbay_hub/static/search-page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/meshbay-hub') diff --git a/packages/meshbay-hub/src/meshbay_hub/static/search-page.js b/packages/meshbay-hub/src/meshbay_hub/static/search-page.js index 61565e8..ba2ae63 100644 --- a/packages/meshbay-hub/src/meshbay_hub/static/search-page.js +++ b/packages/meshbay-hub/src/meshbay_hub/static/search-page.js @@ -314,7 +314,7 @@ async function fetchGroupIndex(pool, groupId, token, bundleKey, username, userId // Which of the reader's groups sit on their own node — the tie-breaker // when the same file is announced by several of them // (docs/MESHBAY_DESIGN.md §9.11). Computed by the node from its own - // record of who it belongs to (webrtc_server.py's _is_node_admin), never + // record of who it belongs to (webrtc/admin.py's _is_node_admin), never // from a hub claim, and deliberately not written to the index cache: it // describes this connection, not the group's content. return { entries: indexMsg.entries || [], roots, isNodeAdmin: !!ack.is_node_admin }; @@ -734,7 +734,7 @@ function SearchPage({ token, username, userId, groups, onPlayQueue, userPrefs }) // How a unit's source is chosen, shared by every merged view // (docs/MESHBAY_DESIGN.md §9.11). `isLocal` reads the flag the node itself // put in the handshake ack — computed from its own record of who it belongs - // to (webrtc_server.py's `_is_node_admin`), never from a hub claim. + // to (webrtc/admin.py's `_is_node_admin`), never from a hub claim. const mergeOpts = useMemo(() => ({ salt: userId || '', isLocal: (gid) => { -- cgit v1.2.3