fix stream for portal user

This commit is contained in:
Yuri Kuznetsov
2020-01-02 11:32:39 +02:00
parent 7bfd2f32de
commit 6eab2fb177
+1 -1
View File
@@ -1750,7 +1750,7 @@ class Stream extends \Espo\Core\Services\Base
if (empty($item['entity'])) continue;
if (empty($item['object'])) continue;
if (
$aclManager->getLevel($user, $scope, 'read') !== 'all'
!$aclManager || $aclManager->getLevel($user, $scope, 'read') !== 'all'
) {
$list[] = $scope;
}