13 parent::__construct();
14 $this->options = $options;
19 return $GLOBALS[
'USER']->isAuthorized();
22 public function apply(array $items,
Dialog $dialog): void
24 $eventId = (int)$this->getOption(
'eventId', 0);
25 $isSharing = $this->getOption(
'isSharingEvent',
false);
26 if ($eventId > 0 && $isSharing)
32 foreach ($items as $item)
34 if (!($item instanceof
Item))
38 if ($item->getId() === $eventLink->getOwnerId() || $item->getId() === $eventLink->getHostId())
40 $item->setDeselectable(
false);
$GLOBALS['____1444769544']