• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/api/userfieldtype.php
  • Класс: BitrixRestApiUserFieldType
  • Вызов: UserFieldType::checkPermission
static function checkPermission(CRestServer $server)
{
	if($server->getAuthType() !== Auth::AUTH_TYPE)
	{
		throw new AuthTypeException("Application context required");
	}

	if(!CRestUtil::isAdmin())
	{
		throw new AccessException();
	}
}