Implement tenant announcements and audit log fixes
This commit is contained in:
@@ -49,6 +49,16 @@ class SuperAdminAuditLogger
|
||||
?string $source = null,
|
||||
?User $actor = null
|
||||
): ?SuperAdminActionLog {
|
||||
if ($operation === 'updated') {
|
||||
$changed = array_keys($record->getChanges());
|
||||
|
||||
if ($changed === []) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$metadata = self::fieldsMetadata($changed);
|
||||
}
|
||||
|
||||
$action = $this->formatAction($record, $operation);
|
||||
|
||||
return $this->record(
|
||||
|
||||
Reference in New Issue
Block a user