Fixing nickname when LDAP is enabled but nickname field not set (#3243)

Этот коммит содержится в:
Christopher Speller
2016-06-05 02:37:19 -04:00
коммит произвёл enahum
родитель e71c43d24a
Коммит 9133d5939c

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

@@ -649,7 +649,7 @@ class UserSettingsGeneralTab extends React.Component {
if (this.props.activeSection === 'nickname') {
let extraInfo;
let submit = null;
if (this.props.user.auth_service === 'ldap' && global.window.mm_config.NicknameAttributeSet) {
if (this.props.user.auth_service === 'ldap' && global.window.mm_config.NicknameAttributeSet === 'true') {
extraInfo = (
<span>
<FormattedMessage