From c96abd84077edcba28c4ac9f2b4971963434b726 Mon Sep 17 00:00:00 2001 From: "B. Endres" Date: Thu, 12 May 2022 13:29:16 +0200 Subject: [PATCH] [#42] added logging exception --- twingle.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/twingle.php b/twingle.php index 214d041..8551f2b 100644 --- a/twingle.php +++ b/twingle.php @@ -153,6 +153,19 @@ function twingle_civicrm_alterAPIPermissions($entity, $action, &$params, &$permi $permissions['twingle_donation']['endrecurring'] = array('access Twingle API'); } +/** + * Make sure, that the last_access and access_counter column is not logged + * + * @param array $logTableSpec + */ +function twingle_civicrm_alterLogTables(&$logTableSpec) +{ + if (isset($logTableSpec['civicrm_twingle_profile'])) { + $logTableSpec['civicrm_twingle_profile']['exceptions'] = ['last_access', 'access_counter']; + } +} + + // --- Functions below this ship commented out. Uncomment as required. --- /**