From b97b3ae6179bc15ec23e0697b08cdcbdf53e4ffc Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 29 Jun 2016 14:16:17 -0400 Subject: EE: Add the ability to restrict the user roles that can send team invites (#3442) --- .../components/tutorial/tutorial_intro_screens.jsx | 67 ++++++++++++---------- 1 file changed, 37 insertions(+), 30 deletions(-) (limited to 'webapp/components/tutorial/tutorial_intro_screens.jsx') diff --git a/webapp/components/tutorial/tutorial_intro_screens.jsx b/webapp/components/tutorial/tutorial_intro_screens.jsx index 3928b7f20..b0d831d96 100644 --- a/webapp/components/tutorial/tutorial_intro_screens.jsx +++ b/webapp/components/tutorial/tutorial_intro_screens.jsx @@ -106,32 +106,45 @@ export default class TutorialIntroScreens extends React.Component { createScreenThree() { const team = TeamStore.getCurrent(); let inviteModalLink; + let inviteText; - if (team.type === Constants.INVITE_TEAM) { - inviteModalLink = ( - - - - ); - } else { - inviteModalLink = ( - + if (global.window.mm_license.IsLicensed !== 'true' || global.window.mm_config.RestrictTeamInvite === Constants.TEAM_INVITE_ALL) { + if (team.type === Constants.INVITE_TEAM) { + inviteModalLink = ( + + + + ); + } else { + inviteModalLink = ( + + + + ); + } + + inviteText = ( +

+ {inviteModalLink} - +

); } @@ -170,13 +183,7 @@ export default class TutorialIntroScreens extends React.Component { defaultMessage='You’re all set' /> -

- {inviteModalLink} - -

+ {inviteText} {supportInfo}