From b57cf0dbe1b71ad86fddda1bee4eba1957c740de Mon Sep 17 00:00:00 2001 From: Marcel Beck Date: Tue, 14 Aug 2012 09:43:55 +0300 Subject: [PATCH] Update src/applications/people/controller/PhabricatorPeopleController.php Only enable importing users from LDAP, if ldap auth is enabled. --- .../people/controller/PhabricatorPeopleController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/people/controller/PhabricatorPeopleController.php b/src/applications/people/controller/PhabricatorPeopleController.php index 6427ea1ed1..80f639da7f 100644 --- a/src/applications/people/controller/PhabricatorPeopleController.php +++ b/src/applications/people/controller/PhabricatorPeopleController.php @@ -27,7 +27,9 @@ abstract class PhabricatorPeopleController extends PhabricatorController { if ($is_admin) { $nav->addLabel('Create Users'); $nav->addFilter('edit', 'Create New User'); - $nav->addFilter('ldap', 'Import from LDAP'); + if (PhabricatorEnv::getEnvConfig('ldap.auth-enabled') === true) { + $nav->addFilter('ldap', 'Import from LDAP'); + } $nav->addSpacer(); }