diff --git a/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockMembershipsProvider.php b/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockMembershipsProvider.php index d1262e5a65c7..f380555b789b 100644 --- a/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockMembershipsProvider.php +++ b/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockMembershipsProvider.php @@ -51,8 +51,7 @@ protected function getObjectsByMembership(array $objTypes = []) : array $parentTreeLftValue = $item->getParentLftTree(); $parentTreeLftValue = sprintf("%010d", $parentTreeLftValue); - if (!$this->access->checkAccess('read', '', $refId) && - !$this->access->checkAccess('visible', '', $refId)) { + if (!$this->access->checkAccess('visible', '', $refId)) { continue; } diff --git a/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockSelectedItemsProvider.php b/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockSelectedItemsProvider.php index 18a97b14bf51..2e6dc479fbe1 100644 --- a/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockSelectedItemsProvider.php +++ b/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockSelectedItemsProvider.php @@ -36,7 +36,7 @@ public function getItems(array $object_type_white_list = array()) : array ); $access_granted_favourites = []; foreach ($favourites as $idx => $favourite) { - if (!$this->access->checkAccess('read', '', $favourite['ref_id'])) { + if (!$this->access->checkAccess('visible', '', $favourite['ref_id'])) { continue; } $access_granted_favourites[$idx] = $favourite; diff --git a/Services/Repository/RecommendedContent/classes/class.ilDashboardRecommendedContentGUI.php b/Services/Repository/RecommendedContent/classes/class.ilDashboardRecommendedContentGUI.php index d2c5b27b24af..14b1cd030a9a 100644 --- a/Services/Repository/RecommendedContent/classes/class.ilDashboardRecommendedContentGUI.php +++ b/Services/Repository/RecommendedContent/classes/class.ilDashboardRecommendedContentGUI.php @@ -102,6 +102,9 @@ protected function getListItemGroups() : array foreach ($this->recommendations as $ref_id) { try { + if (!$DIC->access()->checkAccess('visible', '', $ref_id)) { + continue; + } $list_items[] = $this->getListItemForData($ref_id); } catch (ilException $e) { continue;