chg: [appModel] Moved getAccessibleFieldForNew function into appModel
parent
cf3a8653e1
commit
046c35851d
|
@ -6,5 +6,8 @@ use Cake\ORM\Entity;
|
||||||
|
|
||||||
class AppModel extends Entity
|
class AppModel extends Entity
|
||||||
{
|
{
|
||||||
|
public function getAccessibleFieldForNew(): array
|
||||||
|
{
|
||||||
|
return $this->_accessibleOnNew ?? [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,9 +16,4 @@ class Individual extends AppModel
|
||||||
protected $_accessibleOnNew = [
|
protected $_accessibleOnNew = [
|
||||||
'uuid' => true,
|
'uuid' => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function getAccessibleFieldForNew(): array
|
|
||||||
{
|
|
||||||
return $this->_accessibleOnNew;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,9 +16,4 @@ class Organisation extends AppModel
|
||||||
protected $_accessibleOnNew = [
|
protected $_accessibleOnNew = [
|
||||||
'uuid' => true,
|
'uuid' => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
public function getAccessibleFieldForNew(): array
|
|
||||||
{
|
|
||||||
return $this->_accessibleOnNew;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue