3namespace Bitrix\Calendar\Access\Rule;
5use Bitrix\Calendar\Access\Model\SectionModel;
6use Bitrix\Calendar\Access\Model\TypeModel;
7use Bitrix\Calendar\Access\Rule\Traits\ExtranetUserTrait;
8use Bitrix\Calendar\Core\Event\Tools\Dictionary;
9use Bitrix\Main\Access\AccessibleItem;
10use Bitrix\Calendar\Access\ActionDictionary;
11use Bitrix\Calendar\Access\Rule\Traits\CurrentUserTrait;
12use Bitrix\Calendar\Access\Rule\Traits\SectionTrait;
17 use SectionTrait, CurrentUserTrait, ExtranetUserTrait;
26 if ($item->getType() === Dictionary::CALENDAR_TYPE[
'open_event'])
31 if (!$this->hasCurrentUser())
36 if (!$this->canSeeOwnerIfExtranetUser($item, $this->user))
41 if ($this->user->isAdmin() || $this->user->isSocNetAdmin($item->getType()))
46 if ($this->isOwner($item, $this->user->getUserId()))
51 $type = TypeModel::createFromSectionModel($item);
54 $this->controller->check(
60 CCalendarSect::GetOperations($item->getId(), $this->user->getUserId()),
static getOldActionKeyByNewActionKey(string $actionId)
const ACTION_SECTION_EVENT_VIEW_FULL
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']