I would like to override that method but extending the class like this does not seem to work when putting the file in custom/Espo/Custom/Services/Record.php
Code:
namespace Espo\Custom\Services; use Espo\ORM\Entity; class Record extends \Espo\Services\Record { protected function processActionHistoryRecord($action, Entity $entity): void { if ($this->getUser()->get('name') !== 'security_auditor') { parent::processActionHistoryRecord($action, $entity); } } }
Comment