summaryrefslogtreecommitdiffstats
path: root/webapp/components/select_team
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-06-30 08:43:46 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-06-30 08:43:46 -0400
commit1c8962cf9981edf14933264bc060168723e0bde1 (patch)
treeae7b4de755e54f870d8ab4293d419c47466b9437 /webapp/components/select_team
parent65e18ad1f553d91c28b444afaced08f462f9d374 (diff)
downloadchat-1c8962cf9981edf14933264bc060168723e0bde1.tar.gz
chat-1c8962cf9981edf14933264bc060168723e0bde1.tar.bz2
chat-1c8962cf9981edf14933264bc060168723e0bde1.zip
enabled team creation for sysadmins (#3433)
Diffstat (limited to 'webapp/components/select_team')
-rw-r--r--webapp/components/select_team/select_team.jsx13
1 files changed, 13 insertions, 0 deletions
diff --git a/webapp/components/select_team/select_team.jsx b/webapp/components/select_team/select_team.jsx
index 3b1cf829a..cc53b6b8f 100644
--- a/webapp/components/select_team/select_team.jsx
+++ b/webapp/components/select_team/select_team.jsx
@@ -152,6 +152,16 @@ export default class SelectTeam extends React.Component {
var isSystemAdmin = Utils.isSystemAdmin(UserStore.getCurrentUser().roles);
+ let teamHelp = null;
+ if (isSystemAdmin && (global.window.mm_config.EnableTeamCreation === 'false')) {
+ teamHelp = (
+ <FormattedMessage
+ id='login.createTeamAdminOnly'
+ defaultMessage='This option is only available for System Administrators, and does not show up for other users.'
+ />
+ );
+ }
+
let teamSignUp;
if (isSystemAdmin || (global.window.mm_config.EnableTeamCreation === 'true' && !Utils.isMobileApp())) {
teamSignUp = (
@@ -165,6 +175,9 @@ export default class SelectTeam extends React.Component {
defaultMessage='Create a new team'
/>
</Link>
+ <div>
+ {teamHelp}
+ </div>
</div>
);
}