Merge pull request #702 from mattermost/oauth-switch-fix

Properly check if OAuth providing is enabled on the client.
Этот коммит содержится в:
Joram Wilander
2015-09-17 07:53:02 -04:00
родитель 936f032ec4 ce19b3c211
Коммит fd3a7afb3e

Просмотреть файл

@@ -35,7 +35,7 @@ export default class UserSettingsModal extends React.Component {
tabs.push({name: 'security', uiName: 'Security', icon: 'glyphicon glyphicon-lock'});
tabs.push({name: 'notifications', uiName: 'Notifications', icon: 'glyphicon glyphicon-exclamation-sign'});
tabs.push({name: 'appearance', uiName: 'Appearance', icon: 'glyphicon glyphicon-wrench'});
if (global.window.config.EnableOAuthServiceProvider) {
if (global.window.config.EnableOAuthServiceProvider === 'true') {
tabs.push({name: 'developer', uiName: 'Developer', icon: 'glyphicon glyphicon-th'});
}