• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/controller/call.php
  • Класс: BitrixImControllerCall
  • Вызов: Call::checkCallAccess
protected function checkCallAccess(BitrixImCallCall $call, $userId)
{
	if(!$call->checkAccess($userId))
	{
		$this->errorCollection[] = new Error("You don't have access to the call " . $call->getId() . "; (current user id: " . $userId . ")", 'access_denied');
		return false;
	}
	else
	{
		return true;
	}
}