set is fetched

This commit is contained in:
yuri
2015-12-03 15:34:59 +02:00
parent 51bf1343c8
commit a401c4cd4c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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;
}