Update src/applications/people/controller/PhabricatorPeopleController.php
Only enable importing users from LDAP, if ldap auth is enabled.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user