• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/classes/general/rest.php
  • Класс: CRestServer
  • Вызов: CRestServer::checkScope
private function checkScope()
{
	if($this->tokenCheck)
	{
		if(isset($this->query["token"]) && $this->query["token"] <> '')
		{
			[$scope] = explode(CRestUtil::TOKEN_DELIMITER, $this->query["token"], 2);
			$this->scope = $scope == "" ? CRestUtil::GLOBAL_SCOPE : $scope;
		}
	}

	$callback = $this->getMethodCallback();

	if($callback)
	{
		return true;
	}

	return false;
}