From 40ab02ef80ab5aabd941c14b981e6d05a5e121fb Mon Sep 17 00:00:00 2001 From: Will Murphy Date: Sun, 23 May 2021 16:46:45 -0500 Subject: [PATCH] fix showing create room option on servers with it disabled --- src/react-components/ui-root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index b57d440c61..45a9023afa 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -1075,7 +1075,7 @@ class UIRoot extends Component { const renderEntryFlow = (!enteredOrWatching && this.props.hub) || this.isWaitingForAutoExit(); - const canCreateRoom = !configs.feature("disable_room_creation") || configs.isAdmin; + const canCreateRoom = !configs.feature("disable_room_creation") || configs.isAdmin(); const canCloseRoom = this.props.hubChannel && !!this.props.hubChannel.canOrWillIfCreator("close_hub"); const isModerator = this.props.hubChannel && this.props.hubChannel.canOrWillIfCreator("kick_users") && !isMobileVR;