Overleaf/ldap-overleaf-sl/sharelatex
David Mehren c40b47135c
Fix parsing the LDAP_CONTACTS environment variable
The current code skips loading contact information from LDAP if
`!process.env.LDAP_CONTACTS` evaluates to `true`.

This is nearly never the case, as `process.env` contains strings
and non-empty strings evaluate to `true`, making the negation falsy.
Only an empty string in `LDAP_CONTACTS` (or not setting the environment
variable at all) skips the contact loading.

This commit changes the logic to only load contacts from LDAP if the
`LDAP_CONTACTS` environment variable is explicitly set to `"true"` (case
insensitive). This should bring the behaviour of the application more in
line with the expectation and the docs.
2021-06-14 17:34:42 +02:00
..
admin-index.pug fix external email registration, Admin. Working solution. 2020-05-15 12:45:34 +02:00
admin-sysadmin.pug Fixed Issue #7. Other solution for pull request #8 - it is now selectable which admin interface is used (via .env file) 2021-05-10 23:40:49 +02:00
AuthenticationManager.js Merged pull reqeust #9. Added missing adaptions in ContactController. Generally moved GROUP_FILTER to USER_FILTER. Added some comments to the readme. 2021-05-25 15:35:13 +02:00
ContactController.js Fix parsing the LDAP_CONTACTS environment variable 2021-06-14 17:34:42 +02:00
navbar.pug fix external email registration, Admin. Working solution. 2020-05-15 12:45:34 +02:00
settings.pug fix external email registration, Admin. Working solution. 2020-05-15 12:45:34 +02:00