fix: [authkeys] correctly filter the api keys on the user view
parent
17a230aee4
commit
0472108cc3
|
@ -15,7 +15,7 @@ class RolesController extends AppController
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$this->CRUD->index([
|
$this->CRUD->index([
|
||||||
'filters' => ['name', 'uuid', 'perm_admin'],
|
'filters' => ['name', 'uuid', 'perm_admin', 'Users.id'],
|
||||||
'quickFilters' => ['name']
|
'quickFilters' => ['name']
|
||||||
]);
|
]);
|
||||||
if ($this->ParamHandler->isRest()) {
|
if ($this->ParamHandler->isRest()) {
|
||||||
|
|
|
@ -43,12 +43,12 @@ echo $this->element(
|
||||||
],
|
],
|
||||||
'children' => [
|
'children' => [
|
||||||
[
|
[
|
||||||
'url' => '/AuthKeys/index?users_id={{0}}',
|
'url' => '/AuthKeys/index?Users.id={{0}}',
|
||||||
'url_params' => ['id'],
|
'url_params' => ['id'],
|
||||||
'title' => __('Authentication keys')
|
'title' => __('Authentication keys')
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'url' => '/EncryptionKeys/index?users_id={{0}}',
|
'url' => '/EncryptionKeys/index?Users.id={{0}}',
|
||||||
'url_params' => ['id'],
|
'url_params' => ['id'],
|
||||||
'title' => __('Encryption keys')
|
'title' => __('Encryption keys')
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue