Обновления: криптосервис ставится сам при любой лицензии; модули вне лицензии в списке не показываются

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
zuevav
2026-09-24 18:04:20 +03:00
parent 350c673764
commit dccd414643
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -324,7 +324,9 @@ func updateComponentRows(rc *RuntimeConfig) ([]release.ComponentState, bool) {
}
r.Available = avail[r.Name]
r.Update = r.Available != "" && (r.Present || r.Core) && (r.Installed == "" || release.IsNewer(r.Available, r.Installed))
if r.Present || r.Core || r.Available != "" {
// Модуль, которого нет на сервере и нет в лицензии, не показываем: поставить его нельзя,
// а в списке он выглядит так, будто входит в поставку.
if r.Present || r.Core || (r.Available != "" && moduleAllowed(rc, r.Feature)) {
out = append(out, r)
}
}