1
0
Fork 0
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:
Evan Priestley 2012-08-14 05:23:09 -07:00
commit 70e59e58f0

View file

@ -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();
} }