• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/internals/commonsendercomponent.php
  • Класс: Bitrix\Sender\Internals\CommonSenderComponent
  • Вызов: CommonSenderComponent::executeComponent
public function executeComponent()
{
	$this->errors = new ErrorCollection();
	$this->userId = Security\User::current()->getId();
	Security\Access::registerEvent(EventDictionary::EVENT_ON_AFTER_CHECK);

	try
	{
		$canAccess = $this->getAccessController()->check(static::getViewAction());

		if((!isset($this->arParams['CAN_VIEW']) || !$this->arParams['CAN_VIEW']) && !$canAccess)
		{
			throw new WrongPermissionException();
		}
	}
	catch (AccessException $e)
	{
		$this->errors->setError(new Error(Loc::getMessage('SENDER_WRONG_PERMISSION')));
		$this->printErrors();
		exit;
	}
	static::initParams();

	if (!$this->checkRequiredParams())
	{
		$this->printErrors();
		exit;
	}
}