Unverified Commit 39ef130a authored by sym's avatar sym Committed by GitHub
Browse files

Merge pull request #13 from davidmehren/fix_contacts_disable

Fix parsing the LDAP_CONTACTS environment variable. 
Thank you for the contribution!
parents ba73f282 c40b4713
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ module.exports = ContactsController = {
    })
  },
  async getLdapContacts(contacts) {
    if (! process.env.LDAP_CONTACTS) {
    if (process.env.LDAP_CONTACTS === undefined || !(process.env.LDAP_CONTACTS.toLowerCase() === 'true')) {
       return contacts
    }
    const client = new Client({