preserve audit log param

This commit is contained in:
Yuri Kuznetsov
2024-10-10 10:45:39 +03:00
parent 6d9fe6b69f
commit e859068670
2 changed files with 7 additions and 2 deletions

View File

@@ -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);

View File

@@ -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",