action === 'checkAccess') { $granted = TRUE; } else { $granted = CoreUtil::checkAccessDelegated($this->getEntityName(), $this->action, $this->values, \CRM_Core_Session::getLoggedInContactID() ?: 0); } $result->exchangeArray([['access' => $granted]]); } /** * This action is always allowed * * @return bool */ public function isAuthorized(): bool { return TRUE; } /** * Add an item to the values array * @param string $fieldName * @param mixed $value * @return $this */ public function addValue(string $fieldName, $value) { $this->values[$fieldName] = $value; return $this; } }