fix: [sharing groups] don't include ALL user details in the sharing group

pull/17/head
iglocska 2020-06-25 02:05:28 +02:00
parent 7f42a728d5
commit 8dbc5ae016
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class SharingGroupsController extends AppController
public function index()
{
$this->CRUD->index([
'contain' => ['SharingGroupOrgs', 'Organisations', 'Users'],
'contain' => ['SharingGroupOrgs', 'Organisations', 'Users' => ['fields' => ['id', 'username']]],
'filters' => ['uuid', 'description', 'releasability', 'Organisations.name', 'Organisations.uuid']
]);
if ($this->ParamHandler->isRest()) {
@ -46,7 +46,7 @@ class SharingGroupsController extends AppController
public function view($id)
{
$this->CRUD->view($id, [
'contain' => ['SharingGroupOrgs', 'Organisations', 'Users']
'contain' => ['SharingGroupOrgs', 'Organisations', 'Users' => ['fields' => ['id', 'username']]]
]);
if ($this->ParamHandler->isRest()) {
return $this->restResponsePayload;