Cleanup email unpacking
This commit is contained in:
parent
bcd855df3c
commit
af79def2b5
1 changed files with 4 additions and 1 deletions
|
@ -119,7 +119,10 @@ def sync_list(list_name, ldap_group_entry, ldap_conn)
|
||||||
if matched_ldap_users.nil? || matched_ldap_users.empty?
|
if matched_ldap_users.nil? || matched_ldap_users.empty?
|
||||||
""
|
""
|
||||||
else
|
else
|
||||||
matched_ldap_users.first.mail.first
|
user = matched_ldap_users.first
|
||||||
|
address = mail.first # 'mail' is an array for some reason.
|
||||||
|
|
||||||
|
address
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue