Show only active users in auto-complete forms
This commit is contained in:
@@ -13,6 +13,7 @@ Bug fixes:
|
|||||||
* Ensure project tags are removed when the project is removed
|
* Ensure project tags are removed when the project is removed
|
||||||
* Avoid PHP notice when regenerating API token for a user
|
* Avoid PHP notice when regenerating API token for a user
|
||||||
* Fix wrong dropdown menu in group members list
|
* Fix wrong dropdown menu in group members list
|
||||||
|
* Show only active users in auto-complete forms (project permissions)
|
||||||
|
|
||||||
Version 1.0.43 (April 30, 2017)
|
Version 1.0.43 (April 30, 2017)
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
|||||||
@@ -22,7 +22,11 @@ class UserAjaxController extends BaseController
|
|||||||
{
|
{
|
||||||
$search = $this->request->getStringParam('term');
|
$search = $this->request->getStringParam('term');
|
||||||
$filter = $this->userQuery->withFilter(new UserNameFilter($search));
|
$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));
|
$this->response->json($filter->format($this->userAutoCompleteFormatter));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user