From 4bda4e2d79d9885d4d6e2404916165dd79591159 Mon Sep 17 00:00:00 2001 From: SuhorukovAnton Date: Wed, 29 Mar 2023 15:19:32 +0300 Subject: [PATCH] revert 9b7c765f199f7530490a89917bd81cecc17b0403 --- web/ASC.Web.Api/Core/QuotaHelper.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/ASC.Web.Api/Core/QuotaHelper.cs b/web/ASC.Web.Api/Core/QuotaHelper.cs index 8d6169d3c4..4a3eb0d28d 100644 --- a/web/ASC.Web.Api/Core/QuotaHelper.cs +++ b/web/ASC.Web.Api/Core/QuotaHelper.cs @@ -58,13 +58,13 @@ public class QuotaHelper var priceInfo = _tenantManager.GetProductPriceInfo(); var currentRegion = _regionHelper.GetCurrentRegionInfo(); - return await ToQuotaDto(quota, priceInfo, currentRegion, true, true); + return await ToQuotaDto(quota, priceInfo, currentRegion, true); } - private async Task ToQuotaDto(TenantQuota quota, IDictionary> priceInfo, RegionInfo currentRegion, bool getUsed = false, bool visible = false) + private async Task ToQuotaDto(TenantQuota quota, IDictionary> priceInfo, RegionInfo currentRegion, bool getUsed = false) { var price = GetPrice(quota, priceInfo, currentRegion); - var features = await GetFeatures(quota, getUsed, visible).ToListAsync(); + var features = await GetFeatures(quota, getUsed).ToListAsync(); return new QuotaDto { @@ -98,13 +98,13 @@ public class QuotaHelper return quota.Price; } - private async IAsyncEnumerable GetFeatures(TenantQuota quota, bool getUsed, bool visible) + private async IAsyncEnumerable GetFeatures(TenantQuota quota, bool getUsed) { var assembly = GetType().Assembly; var features = quota.Features.Split(' ', ',', ';'); - foreach (var feature in quota.TenantQuotaFeatures.Where(r => visible || r.Visible).OrderBy(r => r.Order)) + foreach (var feature in quota.TenantQuotaFeatures.Where(r => r.Visible).OrderBy(r => r.Order)) { var result = new TenantQuotaFeatureDto() {