mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
Update src/applications/people/controller/PhabricatorPeopleController.php
Only enable importing users from LDAP, if ldap auth is enabled.
This commit is contained in:
parent
ef0f30b662
commit
b57cf0dbe1
1 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,9 @@ abstract class PhabricatorPeopleController extends PhabricatorController {
|
||||||
if ($is_admin) {
|
if ($is_admin) {
|
||||||
$nav->addLabel('Create Users');
|
$nav->addLabel('Create Users');
|
||||||
$nav->addFilter('edit', 'Create New User');
|
$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();
|
$nav->addSpacer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue