mirror of
https://git.unistra.fr/aius/root/ldap-overleaf-sl.git
synced 2025-05-04 19:55:26 +02:00
Merge pull request #13 from davidmehren/fix_contacts_disable
Fix parsing the LDAP_CONTACTS environment variable. Thank you for the contribution!
This commit is contained in:
commit
39ef130adc
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ module.exports = ContactsController = {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async getLdapContacts(contacts) {
|
async getLdapContacts(contacts) {
|
||||||
if (! process.env.LDAP_CONTACTS) {
|
if (process.env.LDAP_CONTACTS === undefined || !(process.env.LDAP_CONTACTS.toLowerCase() === 'true')) {
|
||||||
return contacts
|
return contacts
|
||||||
}
|
}
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
|
|
Loading…
Add table
Reference in a new issue