chg: [appModel] Moved getAccessibleFieldForNew function into appModel

pull/67/head
mokaddem 2021-06-28 15:04:02 +02:00
parent cf3a8653e1
commit 046c35851d
4 changed files with 4 additions and 16 deletions

View File

@ -6,5 +6,8 @@ use Cake\ORM\Entity;
class AppModel extends Entity class AppModel extends Entity
{ {
public function getAccessibleFieldForNew(): array
{
return $this->_accessibleOnNew ?? [];
}
} }

View File

@ -16,9 +16,4 @@ class Individual extends AppModel
protected $_accessibleOnNew = [ protected $_accessibleOnNew = [
'uuid' => true, 'uuid' => true,
]; ];
public function getAccessibleFieldForNew(): array
{
return $this->_accessibleOnNew;
}
} }

View File

@ -16,9 +16,4 @@ class Organisation extends AppModel
protected $_accessibleOnNew = [ protected $_accessibleOnNew = [
'uuid' => true, 'uuid' => true,
]; ];
public function getAccessibleFieldForNew(): array
{
return $this->_accessibleOnNew;
}
} }

View File

@ -20,9 +20,4 @@ class SharingGroup extends AppModel
'organisation_id' => true, 'organisation_id' => true,
'user_id' => true, 'user_id' => true,
]; ];
public function getAccessibleFieldForNew(): array
{
return $this->_accessibleOnNew;
}
} }