follow fix

This commit is contained in:
yuri
2015-08-28 15:50:09 +03:00
parent 725a2be959
commit 03d3884bf4
+2 -2
View File
@@ -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();