• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/rest.php
  • Класс: BitrixImOpenLinesRest
  • Вызов: Rest::getAllSoftPause
static function getAllSoftPause($arParams, $n, CRestServer $server): array
{
	$permission = Permissions::createWithCurrentUser();
	if(!$permission->canPerform(Permissions::ENTITY_SOFT_PAUSE_LIST, Permissions::ACTION_VIEW))
	{
		throw new RestException('You dont have access to this action', 'ACCESS_DENIED', CRestServer::STATUS_WRONG_REQUEST);
	}

	return UserPause::getAllStatuses((int)$arParams['CONFIG_ID'] ?? 0);
}