Skip to content

Commit

Permalink
fix item type to array
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais committed Jun 23, 2023
1 parent 85250f7 commit 63a8ca9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 63a8ca9

Please sign in to comment.