1
0
Fork 0
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:
Marcel Beck 2012-08-14 09:43:55 +03:00
parent ef0f30b662
commit b57cf0dbe1

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