Skip to content
Snippets Groups Projects
Commit 5d0fa823 authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #6224 from RocketChat/fix-isObject-check-ldap

Fix incorrect isObject check on the ldap server sync
parents 36d06383 9316e097
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