mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
Merge pull request #181 from nexeck/patch-1
Only enable menu entry "Import from LDAP" when ldap auth is enabled.
This commit is contained in:
commit
70e59e58f0
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