ai_co_discuss 0.3.32 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app.js +3 -2
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -361,9 +361,10 @@ async function admin_avatar_from_file(file) {
|
|
|
361
361
|
} finally { URL.revokeObjectURL(url); }
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
-
/** Whether this browser may write as the room owner: its own control credential,
|
|
364
|
+
/** Whether this browser may write as the room owner: its own control credential, a logged-in administrator session, or the
|
|
365
|
+
* loopback-only local site, whose server writes as the owner for every visitor (`admin_as_owner`). */
|
|
365
366
|
function has_room_control(room_id) {
|
|
366
|
-
return Boolean(localStorage.getItem(`discuss-access:${room_id}`) || (state.admin.logged_in && admin_token()));
|
|
367
|
+
return Boolean(localStorage.getItem(`discuss-access:${room_id}`) || state.admin.local || (state.admin.logged_in && admin_token()));
|
|
367
368
|
}
|
|
368
369
|
|
|
369
370
|
/** Explain why a management write failed when this browser has neither credential. */
|