Fix AD/LDAP & SAML profile sync properties (#2941)

This commit is contained in:
Elias Nahum 2019-07-02 10:11:14 -04:00 committed by Harrison Healey
parent 1588f46ae4
commit 614e6da142

View file

@ -15,7 +15,7 @@ import EditProfile from './edit_profile';
function mapStateToProps(state, ownProps) {
const config = getConfig(state);
const {serverVersion} = state.entities.general;
const {service} = ownProps.currentUser;
const {auth_service: service} = ownProps.currentUser;
const firstNameDisabled = (service === 'ldap' && config.LdapFirstNameAttributeSet === 'true') ||
(service === 'saml' && config.SamlFirstNameAttributeSet === 'true');