25 if (!$this->hasCurrentUser())
30 if ($this->user->isAdmin() || $this->user->isSocNetAdmin($item->getSectionType()))
35 $doCheckCurrentEvent = isset($params[
'checkCurrentEvent']) && $params[
'checkCurrentEvent'] ===
'Y';
36 $isSharingEventLinkOwner =
37 in_array($item->getEventType(), SharingEventManager::getSharingEventTypes())
38 && $this->isEventLinkOwner($item->getParentEventId(), $this->user->getUserId())
41 if ($doCheckCurrentEvent || $isSharingEventLinkOwner)
43 $section = SectionModel::createFromEventModel($item);
47 $section = SectionModel::createFromEventModelParentFields($item);
50 return $this->controller->check(