• Модуль: vote
  • Путь к файлу: ~/bitrix/modules/vote/lib/base/controller.php
  • Класс: BitrixVoteBaseController
  • Вызов: Controller::checkAction
protected function checkAction()
{
	$description = $this->getActionDescription();

	if ($description["need_auth"] && (!$this->getUser() || !$this->getUser()->getId()))
	{
		if ($description["redirect_on_auth"])
		{
			LocalRedirect(SITE_DIR . 'auth/?backurl=' . urlencode(Application::getInstance()->getContext()->getRequest()->getRequestUri()));
		}
		else
		{
			throw new AccessDeniedException();
		}
	}

	if (!in_array($this->request->getRequestMethod(), $description['method']))
		throw new ArgumentException("Request method is not supported by ".$this->getAction()." operation.");

	if ($description['check_sessid'] && !check_bitrix_sessid())
		throw new ArgumentException("Bad sessid.");

	return true;
}