diff --git a/authentik/tenants/api.py b/authentik/tenants/api.py index 3e85257e5..e5b7cc957 100644 --- a/authentik/tenants/api.py +++ b/authentik/tenants/api.py @@ -51,7 +51,7 @@ class CurrentTenantSerializer(PassiveSerializer): ui_footer_links = ListField( child=FooterLinkSerializer(), read_only=True, - default=CONFIG.y("authentik.footer_links"), + default=CONFIG.y("footer_links", []), ) flow_unenrollment = CharField(source="flow_unenrollment.slug", required=False) diff --git a/authentik/tenants/tests.py b/authentik/tenants/tests.py index d552fd25f..15fbfd7a8 100644 --- a/authentik/tenants/tests.py +++ b/authentik/tenants/tests.py @@ -19,7 +19,7 @@ class TestTenants(TestCase): "branding_favicon": "/static/dist/assets/icons/icon.png", "branding_title": "authentik", "matched_domain": "authentik-default", - "ui_footer_links": CONFIG.y("authentik.footer_links"), + "ui_footer_links": CONFIG.y("footer_links"), }, ) @@ -38,7 +38,7 @@ class TestTenants(TestCase): "branding_favicon": "/static/dist/assets/icons/icon.png", "branding_title": "custom", "matched_domain": "bar.baz", - "ui_footer_links": CONFIG.y("authentik.footer_links"), + "ui_footer_links": CONFIG.y("footer_links"), }, ) @@ -52,6 +52,6 @@ class TestTenants(TestCase): "branding_favicon": "/static/dist/assets/icons/icon.png", "branding_title": "authentik", "matched_domain": "fallback", - "ui_footer_links": CONFIG.y("authentik.footer_links"), + "ui_footer_links": CONFIG.y("footer_links"), }, ) diff --git a/authentik/tenants/utils.py b/authentik/tenants/utils.py index 35e9010b2..06b9905e2 100644 --- a/authentik/tenants/utils.py +++ b/authentik/tenants/utils.py @@ -31,5 +31,5 @@ def context_processor(request: HttpRequest) -> dict[str, Any]: return { "tenant": tenant, "ak_version": __version__, - "footer_links": CONFIG.y("authentik.footer_links"), + "footer_links": CONFIG.y("footer_links"), }