Skip to content

Commit

Permalink
Merge pull request #6055 from iszmais/bugfix/unsubscribe-multiple
Browse files Browse the repository at this point in the history
Fix item type in multiple unsubscribe
  • Loading branch information
iszmais authored Jun 23, 2023
2 parents 85250f7 + 63a8ca9 commit 0c8bfef
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 0c8bfef

Please sign in to comment.