Skip to content
Snippets Groups Projects
Unverified Commit 9316e097 authored by Bradley Hilton's avatar Bradley Hilton
Browse files

Fix incorrect isObject check on the ldap server sync, closes #5973

parent c812a1a0
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ getDataToSyncUserData = function getDataToSyncUserData(ldapUser, user) {
switch (userField) {
case 'email':
if (_.isObject(ldapUser.object[ldapField] === 'object')) {
if (_.isObject(ldapUser.object[ldapField])) {
_.map(ldapUser.object[ldapField], function(item) {
emailList.push({ address: item, verified: true });
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment