From 19c81b7c114d875453fe202b7d2c7e882be21aec Mon Sep 17 00:00:00 2001 From: iglocska Date: Tue, 25 Jan 2022 17:09:29 +0100 Subject: [PATCH] fix: [Sharing groups] UUID and owner org shouldn't be editable --- src/Controller/SharingGroupsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controller/SharingGroupsController.php b/src/Controller/SharingGroupsController.php index 4e98df8..764f0e6 100644 --- a/src/Controller/SharingGroupsController.php +++ b/src/Controller/SharingGroupsController.php @@ -71,6 +71,7 @@ class SharingGroupsController extends AppController if (empty($currentUser['role']['perm_admin'])) { $params['conditions'] = ['organisation_id' => $currentUser['organisation_id']]; } + $params['fields'] = ['name', 'releasability', 'description', 'active']; $this->CRUD->edit($id, $params); $responsePayload = $this->CRUD->getResponsePayload(); if (!empty($responsePayload)) {