Skip to content
Snippets Groups Projects
Commit 3342e54b authored by Peter Rotich's avatar Peter Rotich
Browse files

fix: User remote lookup on add new user

Don't show user search box, when adding a new user, if the system don't have remote directories installed
parent 1fba9fd1
No related branches found
No related tags found
No related merge requests found
......@@ -215,8 +215,9 @@ class UsersAjaxAPI extends AjaxController {
$info['title'] = 'Add New User';
$info['lookup'] = 'remote';
if (!AuthenticationBackend::getSearchDirectories())
$info['lookup'] = 'local';
$info['lookup'] = false;
if ($_POST) {
$form = UserForm::getUserForm()->getForm($_POST);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment