From 74279c55e33842daeb8512b990279dde7ceebb59 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sun, 7 Jun 2026 11:38:05 -0500 Subject: [PATCH] fix(licensing): hide require-key option for Joomla update servers Joomla's update system does not support license key authentication, so hide the "Require license key for update feeds" checkbox when the platform is set to Joomla or Joomla+Dolibarr. --- templates/org/settings/update_streams.tmpl | 2 ++ templates/repo/settings/licensing.tmpl | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/org/settings/update_streams.tmpl b/templates/org/settings/update_streams.tmpl index 5da64c43e1..920fffcc79 100644 --- a/templates/org/settings/update_streams.tmpl +++ b/templates/org/settings/update_streams.tmpl @@ -19,6 +19,7 @@

{{ctx.Locale.Tr "org.settings.enable_licensing_help"}}

+ {{if and (ne .StreamConfig.Platform "joomla") (ne .StreamConfig.Platform "both") (ne .StreamConfig.Platform "")}}
@@ -26,6 +27,7 @@

{{ctx.Locale.Tr "org.settings.require_key_help"}}

+ {{end}}
diff --git a/templates/repo/settings/licensing.tmpl b/templates/repo/settings/licensing.tmpl index f85d6a5173..7dc52faf5c 100644 --- a/templates/repo/settings/licensing.tmpl +++ b/templates/repo/settings/licensing.tmpl @@ -31,13 +31,15 @@

{{ctx.Locale.Tr "repo.settings.update_platform_help"}}

+ {{if and .RepoUpdateConfig (ne .RepoUpdateConfig.Platform "joomla") (ne .RepoUpdateConfig.Platform "both") (ne .RepoUpdateConfig.Platform "")}}
- +

{{ctx.Locale.Tr "repo.settings.require_update_key_help"}}

+ {{end}}
-- 2.52.0