From 9409bbb61a4854df8629216dcc0b997a09571f8a Mon Sep 17 00:00:00 2001 From: Andreas Brain Date: Fri, 15 Sep 2023 16:01:32 +0200 Subject: [PATCH] Remove ternary filter from non-boolean variable --- templates/gitea.ini.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/gitea.ini.j2 b/templates/gitea.ini.j2 index e7be89c..af6c505 100644 --- a/templates/gitea.ini.j2 +++ b/templates/gitea.ini.j2 @@ -183,8 +183,8 @@ DEFAULT_USER_IS_RESTRICTED = {{ gitea_default_user_is_restricted | ternary('true {% if gitea_email_domain_allowlist is defined and gitea_email_domain_allowlist | length %} EMAIL_DOMAIN_ALLOWLIST = {{ gitea_email_domain_allowlist }} {% endif %} -DEFAULT_USER_VISIBILITY = {{ gitea_default_user_visibility | ternary('true', 'false') }} -DEFAULT_ORG_VISIBILITY = {{ gitea_default_org_visibility | ternary('true', 'false') }} +DEFAULT_USER_VISIBILITY = {{ gitea_default_user_visibility }} +DEFAULT_ORG_VISIBILITY = {{ gitea_default_org_visibility }} ALLOW_ONLY_INTERNAL_REGISTRATION = {{ gitea_allow_only_internal_registration | ternary('true', 'false') }} ALLOW_ONLY_EXTERNAL_REGISTRATION = {{ gitea_allow_only_external_registration | ternary('true', 'false') }} {{ gitea_service_extra_config }}