summaryrefslogtreecommitdiff
path: root/app/Controller/UserAjaxController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/UserAjaxController.php')
-rw-r--r--app/Controller/UserAjaxController.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Controller/UserAjaxController.php b/app/Controller/UserAjaxController.php
index 17567a00..37c09b8a 100644
--- a/app/Controller/UserAjaxController.php
+++ b/app/Controller/UserAjaxController.php
@@ -22,7 +22,11 @@ class UserAjaxController extends BaseController
{
$search = $this->request->getStringParam('term');
$filter = $this->userQuery->withFilter(new UserNameFilter($search));
- $filter->getQuery()->asc(UserModel::TABLE.'.name')->asc(UserModel::TABLE.'.username');
+ $filter->getQuery()
+ ->eq(UserModel::TABLE.'.is_active', 1)
+ ->asc(UserModel::TABLE.'.name')
+ ->asc(UserModel::TABLE.'.username');
+
$this->response->json($filter->format($this->userAutoCompleteFormatter));
}