Support permissions ... but then disable them ... hmmm.

This commit is contained in:
Rich Lott / Artful Robot 2025-05-02 09:50:30 +01:00
parent daae65a5d3
commit d8a87d03d3
3 changed files with 8 additions and 3 deletions

View file

@ -32,7 +32,10 @@ class Sync extends \Civi\Api4\Generic\AbstractAction {
public function _run(Result $result) {
ini_set('memory_limit', '256M');
Civi::log()->debug('Begin', ['=start' => 'ContactCatSync', '=timed' => 1]);
Civi::log()->debug(
'Begin sync for ' . ($this->contact_id ? "contact $this->contact_id" : "all contacts"),
['=start' => 'ContactCatSync', '=timed' => 1]
);
if (!$this->force && !$this->contact_id) {
$nextRun = Civi::settings()->get('contactcats_next_run') ?? 0;