• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/apauth/auth.php
  • Класс: BitrixRestAPAuthAuth
  • Вызов: Auth::checkPermission
static function checkPermission($passwordId, $scope)
{
	if($scope === CRestUtil::GLOBAL_SCOPE)
	{
		return true;
	}

	$scopeList = static::getPasswordScope($passwordId);
	$scopeList = BitrixRestEngineRestManager::fillAlternativeScope($scope, $scopeList);
	return in_array($scope, $scopeList);
}