Merge branch '2.4' into develop

pull/7494/head
iglocska 2021-06-10 16:23:02 +02:00
commit 51821b5de2
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
3 changed files with 3 additions and 2 deletions

View File

@ -83,6 +83,7 @@ class AuthKeysController extends AppController
return $authKey;
},
'fields' => ['comment', 'allowed_ips', 'expiration'],
'contain' => ['User.id', 'User.org_id']
]);
if ($this->IndexFilter->isRest()) {
return $this->restResponsePayload;

View File

@ -161,7 +161,7 @@ class CRUDComponent extends Component
$query = isset($params['get']) ? $params['get'] : [
'recursive' => -1,
'conditions' => [
'id' => $id
$modelName . '.id' => $id
],
];
if (!empty($params['conditions'])) {

View File

@ -1,4 +1,4 @@
# Data visibility for Sync-users
# Data visibility for Sync-users and MISP synchronisation
Sync-users are used to serve as the point of connection between instances.
Typically, events pushed to an instance are created via a sync-user account residing on the remote instance.