• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/controller/qrcodeauth.php
  • Класс: BitrixMainControllerQrCodeAuth
  • Вызов: QrCodeAuth::isAllowed
public function isAllowed()
{
	if (ConfigOption::get('main', 'allow_qrcode_auth', 'N') !== 'Y')
	{
		$this->addError(new MainError(Loc::getMessage('qrcodeauth_error_option'), 'ERR_OPTION'));
		return false;
	}

	if (!MainLoader::includeModule('pull') || !CPullOptions::GetQueueServerStatus())
	{
		$this->addError(new MainError(Loc::getMessage('qrcodeauth_error_pull'), 'ERR_PULL'));
		return false;
	}

	return true;
}