chg: [users:index] Allow quick filters

pull/67/head
mokaddem 2021-06-29 11:26:06 +02:00
parent 5d1f8bf71a
commit 39c848202a
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ class UsersController extends AppController
{
$this->CRUD->index([
'contain' => ['Individuals', 'Roles'],
'filters' => ['Users.email', 'uuid']
'filters' => ['Users.email', 'uuid'],
'quickFilters' => ['uuid', ['username' => true], ['Individuals.first_name' => true], ['Individuals.last_name' => true], 'Individuals.email'],
]);
if ($this->ParamHandler->isRest()) {
return $this->restResponsePayload;