mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
preserve audit log param
This commit is contained in:
@@ -87,8 +87,9 @@ class Audit implements Cleanup
|
||||
$scopeList = array_keys($this->metadata->get(['scopes']) ?? []);
|
||||
|
||||
$scopeList = array_filter($scopeList, function ($item) {
|
||||
return $this->metadata->get(['scopes', $item, 'entity']) &&
|
||||
!$this->metadata->get(['scopes', $item, 'stream']);
|
||||
return $this->metadata->get("scopes.$item.entity") &&
|
||||
!$this->metadata->get("scopes.$item.preserveAuditLog") &&
|
||||
!$this->metadata->get("scopes.$item.stream");
|
||||
});
|
||||
|
||||
return array_values($scopeList);
|
||||
|
||||
@@ -286,6 +286,10 @@
|
||||
"description": "Whether the entity may contain personal data.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"preserveAuditLog": {
|
||||
"description": "Disables audit log cleanup. As of v8.5.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"exportFormatList": {
|
||||
"description": "A list of allowed export formats. E.g. csv, xlsx.",
|
||||
"type": "array",
|
||||
|
||||
Reference in New Issue
Block a user