• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/classes/general/vi_main.php
  • Класс: CVoxImplantMain
  • Вызов: CVoxImplantMain::CheckAccess
static function CheckAccess()
{
	global $USER;

	$result = false;
	if (IsModuleInstalled('bitrix24'))
	{
		if (is_object($USER) && intval($USER->GetID()) && $USER->CanDoOperation('bitrix24_config'))
		{
			$result = true;
		}
	}
	else
	{
		if (is_object($USER) && intval($USER->GetID()) && $USER->IsAdmin())
		{
			$result = true;
		}
	}

	return $result;
}