From 31238f1d3a630b60bf8e1cfd90c9caa54f58d9f9 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Thu, 3 Mar 2016 16:01:41 -0500 Subject: Removed Get Team Invite Link link when user creation is disabled --- web/react/components/get_link_modal.jsx | 23 +++++++++-------------- web/react/components/navbar_dropdown.jsx | 2 +- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/web/react/components/get_link_modal.jsx b/web/react/components/get_link_modal.jsx index 6a5c3b588..3309d690c 100644 --- a/web/react/components/get_link_modal.jsx +++ b/web/react/components/get_link_modal.jsx @@ -41,8 +41,6 @@ export default class GetLinkModal extends React.Component { } render() { - const userCreationEnabled = global.window.mm_config.EnableUserCreation === 'true'; - let helpText = null; if (this.props.helpText) { helpText = ( @@ -55,7 +53,7 @@ export default class GetLinkModal extends React.Component { } let copyLink = null; - if (userCreationEnabled && document.queryCommandSupported('copy')) { + if (document.queryCommandSupported('copy')) { copyLink = (