• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userconsent/internals/componentcontroller.php
  • Класс: BitrixMainUserConsentInternalsComponentController
  • Вызов: ComponentController::check
protected function check()
{
	if(!$this->checkPermissions())
	{
		$this->errors[] = Loc::getMessage('MAIN_PERMISSION_DENIED');
	}
	if(!in_array($this->action, $this->getActions()))
	{
		$this->errors[] = 'Action "' . $this->action . '" not found.';
	}
	elseif(!check_bitrix_sessid() || !$this->request->isPost())
	{
		$this->errors[] = 'Security error.';
	}
	elseif(!is_callable($this->getActionCall()))
	{
		$this->errors[] = 'Action method "' . $this->action . '" not found.';
	}

	return !$this->hasErrors();
}