diff --git a/application/Espo/Services/Stream.php b/application/Espo/Services/Stream.php index ecf7f099d3..033745907c 100644 --- a/application/Espo/Services/Stream.php +++ b/application/Espo/Services/Stream.php @@ -215,7 +215,7 @@ class Stream extends \Espo\Core\Services\Base return; } if (!$this->getMetadata()->get('scopes.' . $entity->getEntityName() . '.stream')) { - throw new Error(); + return false; } $pdo = $this->getEntityManager()->getPDO(); @@ -235,7 +235,7 @@ class Stream extends \Espo\Core\Services\Base public function unfollowEntity(Entity $entity, $userId) { if (!$this->getMetadata()->get('scopes.' . $entity->getEntityName() . '.stream')) { - throw new Error(); + return false; } $pdo = $this->getEntityManager()->getPDO();