chg: [CRUD:add] Always allow UUID field to be set

pull/67/head
mokaddem 2021-06-28 14:02:52 +02:00
parent 7add89aa9e
commit 524dd10aae
1 changed files with 2 additions and 1 deletions

View File

@ -129,7 +129,8 @@ class CRUDComponent extends Component
} }
if ($this->request->is('post')) { if ($this->request->is('post')) {
$patchEntityParams = [ $patchEntityParams = [
'associated' => [] 'associated' => [],
'accessibleFields' => ['uuid' => true],
]; ];
if (!empty($params['id'])) { if (!empty($params['id'])) {
unset($params['id']); unset($params['id']);