@if (authOk())
{
diff --git a/MP.Land/Components/SingleDownload.razor.cs b/MP.Land/Components/SingleDownload.razor.cs
index 809037ad..be21c56a 100644
--- a/MP.Land/Components/SingleDownload.razor.cs
+++ b/MP.Land/Components/SingleDownload.razor.cs
@@ -42,7 +42,11 @@ namespace MP.Land.Components
protected bool authOk()
{
- bool answ = !string.IsNullOrEmpty(CurrItem.LicenseKey) && CurrItem.IsAuth;
+ bool answ = !string.IsNullOrEmpty(CurrItem.LicenseKey);
+ if (answ)
+ {
+ answ = LicServ.checkLicenseActive(CurrItem.LicenseKey);
+ }
return answ;
}
diff --git a/MP.Land/Pages/UpdateManager.razor b/MP.Land/Pages/UpdateManager.razor
index e16386b0..df011226 100644
--- a/MP.Land/Pages/UpdateManager.razor
+++ b/MP.Land/Pages/UpdateManager.razor
@@ -2,6 +2,7 @@
@using MP.Land.Data
@using MP.Land.Components
+@inject LicenseService LicServ
diff --git a/MP.Land/Pages/UpdateManager.razor.cs b/MP.Land/Pages/UpdateManager.razor.cs
index 8976d086..38c6feaa 100644
--- a/MP.Land/Pages/UpdateManager.razor.cs
+++ b/MP.Land/Pages/UpdateManager.razor.cs
@@ -88,8 +88,18 @@ namespace MP.Land.Pages
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
// ciclo su tutti quelli con licenza valida...
- var authList = ListRecords
- .Where(x => !string.IsNullOrEmpty(x.LicenseKey) && x.IsAuth).ToList();
+ List
rawList = ListRecords
+ .Where(x => !string.IsNullOrEmpty(x.LicenseKey)).ToList();
+ List authList = new List();
+
+ // ciclo SOLO tra quelli davvero autorizzati...
+ foreach (var item in rawList)
+ {
+ if (LicServ.checkLicenseActive(item.LicenseKey))
+ {
+ authList.Add(item);
+ }
+ }
numTot = authList.Count;
foreach (var item in authList)
{