fix: [authkeys] correctly filter the api keys on the user view

pull/67/head
iglocska 2021-06-28 23:43:42 +02:00
parent 17a230aee4
commit 0472108cc3
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class RolesController extends AppController
public function index()
{
$this->CRUD->index([
'filters' => ['name', 'uuid', 'perm_admin'],
'filters' => ['name', 'uuid', 'perm_admin', 'Users.id'],
'quickFilters' => ['name']
]);
if ($this->ParamHandler->isRest()) {

View File

@ -43,12 +43,12 @@ echo $this->element(
],
'children' => [
[
'url' => '/AuthKeys/index?users_id={{0}}',
'url' => '/AuthKeys/index?Users.id={{0}}',
'url_params' => ['id'],
'title' => __('Authentication keys')
],
[
'url' => '/EncryptionKeys/index?users_id={{0}}',
'url' => '/EncryptionKeys/index?Users.id={{0}}',
'url_params' => ['id'],
'title' => __('Encryption keys')
]