diff --git a/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockGUI.php b/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockGUI.php index 9bd79868f9b..399e4499be3 100755 --- a/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockGUI.php +++ b/Services/Dashboard/ItemsBlock/classes/class.ilPDSelectedItemsBlockGUI.php @@ -541,8 +541,8 @@ public function manageObject() foreach ($items as $item) { if ($this->rbacsystem->checkAccess('leave', $item['ref_id'])) { if ( - $item->getType() !== 'crs' || - ilParticipants::getInstance($item->getRefId())->checkLastAdmin([$this->user->getId()]) + $item['type'] !== 'crs' || + ilParticipants::getInstance($item['ref_id'])->checkLastAdmin([$this->user->getId()]) ) { $group->pushItem($item); }