24 if($USER->IsAuthorized() || !defined(
"PULL_USER_ID"))
30 foreach(static::$authQueryParams as $key)
32 if(array_key_exists($key, $query))
34 $authCode = $query[$key];
39 if($authCode ===
null)
44 if(static::checkQueryMethod(static::METHODS_WITHOUT_AUTH))
46 if((
int)$authCode === (
int)PULL_USER_ID)
58 if (\CRestServer::instance()->getMethod() ==
'batch')
61 foreach (\CRestServer::instance()->getQuery()[
'cmd'] as $key => $method)
63 $method = mb_substr($method, 0, mb_strrpos($method,
'?'));
64 $result = in_array(mb_strtolower($method), $whiteListMethods);
73 $result = in_array(\CRestServer::instance()->getMethod(), $whiteListMethods);