• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/marketplace/application.php
  • Класс: BitrixRestMarketplaceApplication
  • Вызов: Application::getRights
static function getRights($appId)
{
	// todo: maybe can add self::$contextUser to isAdmin check
	if (CRestUtil::isAdmin())
	{
		if ($appId > 0)
		{
			$result = AppTable::getAccess($appId);
		}
		else
		{
			$result = 0;
		}
	}
	else
	{
		$result = ['error' => Loc::getMessage('RMP_ACCESS_DENIED')];
	}

	return $result;
}