PLT-4041 Make SAML FirstName and LastName optional (#3951)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
9d11dd437f
Коммит
4bd5935bd8
@@ -630,7 +630,7 @@ class UserSettingsGeneralTab extends React.Component {
|
||||
let extraInfo;
|
||||
let submit = null;
|
||||
if (this.props.user.auth_service === '' ||
|
||||
(this.props.user.auth_service === 'ldap' &&
|
||||
((this.props.user.auth_service === 'ldap' || this.props.user.auth_service === Constants.SAML_SERVICE) &&
|
||||
(global.window.mm_config.FirstNameAttributeSet === 'false' || global.window.mm_config.LastNameAttributeSet === 'false'))) {
|
||||
inputs.push(
|
||||
<div
|
||||
@@ -765,7 +765,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 === 'true') {
|
||||
if ((this.props.user.auth_service === 'ldap' || this.props.user.auth_service === Constants.SAML_SERVICE) && global.window.mm_config.NicknameAttributeSet === 'true') {
|
||||
extraInfo = (
|
||||
<span>
|
||||
<FormattedMessage
|
||||
|
||||
Ссылка в новой задаче
Block a user