Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tidying up security issues for locked down demo #6051

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

mikemorran
Copy link
Contributor

This PR locks down the "i" key shortcut in locked down demo rooms and allows promoted users to have full access to room features. The desire is for promoted users to be able to moderate demo rooms.

Comment on lines 5 to +6
if (!scene.is("entered")) return;
if (userinput.get(paths.actions.startInspectingSelf)) {
if (userinput.get(paths.actions.startInspectingSelf) && !isLockedDownDemoRoom()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option would have been to early exit as we do with the enter scene condition:

if (!scene.is("entered") || isLockedDownDemoRoom()) return;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants