Hello, I created an ACL rule for Portal, but it is not applied - in the example I returned only false for simulation
Path: espo/custom/Espo/Custom/AclPortal
<?php
namespaceEspo\Custom\AclPortal;
use Espo\Entities\User;
use Espo\ORM\Entity;
classTipoDeAtendimentoextends \Espo\Core\AclPortal\Base
{
publicfunctioncheckIsOwner(User$user, Entity$entity)
{
if ($entity->hasAttribute('createdById')) {
if ($entity->has('createdById')) {
if ($user->id === $entity->get('createdById')) {
returnfalse;
}
}
}
returnfalse;
}
}