Skip to content

Commit

Permalink
Merge pull request #4285 from immers-space/fix-create-room-perms
Browse files Browse the repository at this point in the history
Fix showing create room "more" menu option on servers with it disabled
  • Loading branch information
netpro2k authored Jun 3, 2021
2 parents a316856 + 40ab02e commit e3da9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-components/ui-root.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e3da9c7

Please sign in to comment.