mirror of
https://codeberg.org/artfulrobot/contactcats.git
synced 2025-06-26 17:17:17 +02:00
Support permissions ... but then disable them ... hmmm.
This commit is contained in:
parent
daae65a5d3
commit
d8a87d03d3
3 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue