Skip to content

Commit

Permalink
Merge pull request #6051 from mozilla/LockedDownDemoTidyUp
Browse files Browse the repository at this point in the history
tidying up locked down demo
  • Loading branch information
mikemorran authored Apr 26, 2023
2 parents bf8b193 + 736c48b commit ad49046
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems/inspect-yourself-system.js
Original file line number Diff line number Diff line change
@@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions src/utils/hub-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(",");
Expand Down

0 comments on commit ad49046

Please sign in to comment.