diff --git a/src/systems/inspect-yourself-system.js b/src/systems/inspect-yourself-system.js index 1e7ec133d8..cf29c54edd 100644 --- a/src/systems/inspect-yourself-system.js +++ b/src/systems/inspect-yourself-system.js @@ -1,8 +1,9 @@ +import { isLockedDownDemoRoom } from "../utils/hub-utils"; import { paths } from "./userinput/paths"; export class InspectYourselfSystem { tick(scene, userinput, cameraSystem) { if (!scene.is("entered")) return; - if (userinput.get(paths.actions.startInspectingSelf)) { + if (userinput.get(paths.actions.startInspectingSelf) && !isLockedDownDemoRoom()) { const rig = document.getElementById("avatar-rig"); cameraSystem.inspect(rig, 1.5); } diff --git a/src/utils/hub-utils.js b/src/utils/hub-utils.js index 9e77ed48c2..397fb125bf 100644 --- a/src/utils/hub-utils.js +++ b/src/utils/hub-utils.js @@ -55,6 +55,7 @@ export function isRoomOwner(clientId) { } export function isLockedDownDemoRoom() { + if (APP.hubChannel?.canOrWillIfCreator("update_hub")) return; const hubId = getCurrentHubId(); if (configs.feature("is_locked_down_demo_room")) { const idArr = configs.feature("is_locked_down_demo_room").replace(/\s/g, "").split(",");