feat: add subscription enabled status to module filtering logic

This commit is contained in:
2025-12-03 01:38:14 +01:00
parent 6e427e0199
commit 51a8327a8d

View File

@@ -60,7 +60,7 @@ public class ModuleService
.ThenBy(m => m.Name) .ThenBy(m => m.Name)
.ToListAsync(); .ToListAsync();
return modules.Where(m => m.IsCore || (m.Subscription?.IsValid() ?? false)).ToList(); return modules.Where(m => m.IsCore || ((m.Subscription?.IsEnabled ?? false) && (m.Subscription?.IsValid() ?? false))).ToList();
}) ?? new List<AppModule>(); }) ?? new List<AppModule>();
} }