set is fetched
This commit is contained in:
@@ -56,7 +56,7 @@ class Table
|
||||
$this->metadata = $metadata;
|
||||
|
||||
if (!$this->user->isFetched()) {
|
||||
//throw new Error();
|
||||
throw new Error('User must be fetched before ACL check.');
|
||||
}
|
||||
|
||||
$this->user->loadLinkMultipleField('teams');
|
||||
|
||||
@@ -91,6 +91,7 @@ class Notification extends \Espo\Core\Services\Base
|
||||
|
||||
$user = $this->getEntityManager()->getEntity('User');
|
||||
$user->id = $userId;
|
||||
$user->setAsFetched();
|
||||
if (!$this->checkUserNoteAccess($user, $note)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user