From 614e6da1424211205fc0799f536e953ccd0b4bce Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 2 Jul 2019 10:11:14 -0400 Subject: [PATCH] Fix AD/LDAP & SAML profile sync properties (#2941) --- app/screens/edit_profile/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/screens/edit_profile/index.js b/app/screens/edit_profile/index.js index 44ee8b27f..ee29b73a3 100644 --- a/app/screens/edit_profile/index.js +++ b/app/screens/edit_profile/index.js @@ -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');