mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Safety note on DataObject::$validation_enabled
This commit is contained in:
parent
091c096dbf
commit
cb517fda9e
@ -141,6 +141,9 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
/**
|
/**
|
||||||
* @config
|
* @config
|
||||||
* @var boolean Should dataobjects be validated before they are written?
|
* @var boolean Should dataobjects be validated before they are written?
|
||||||
|
* Caution: Validation can contain safeguards against invalid/malicious data,
|
||||||
|
* and check permission levels (e.g. on {@link Group}). Therefore it is recommended
|
||||||
|
* to only disable validation for very specific use cases.
|
||||||
*/
|
*/
|
||||||
private static $validation_enabled = true;
|
private static $validation_enabled = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user