stream fix

This commit is contained in:
yuri
2019-10-04 15:24:06 +03:00
parent 083c768af9
commit a33f0f9fbe
+5
View File
@@ -1671,6 +1671,9 @@ class Stream extends \Espo\Core\Services\Base
$portals = $user->get('portals');
if (count($portals)) {
$aclManager->setPortal($portals[0]);
} else {
$aclManager = null;
}
}
@@ -1678,6 +1681,8 @@ class Stream extends \Espo\Core\Services\Base
if (empty($item['entity'])) continue;
if (empty($item['object'])) continue;
if (
!$aclManager
||
!$aclManager->checkScope($user, $scope, 'read')
||
!$aclManager->checkScope($user, $scope, 'stream')