fix: remove default TOS and privacy links (#8122)

# Which Problems Are Solved

The default terms of service and privacy policy links are applied to all
new ZITADEL instances, also for self hosters. However, the links
contents don't apply to self-hosters.

# How the Problems Are Solved

The links are removed from the DefaultInstance section in the
*defaults.yaml* file.
By default, the links are not shown anymore in the hosted login pages.
They can still be configured using the privacy policy.

# Additional Context

- Found because of a support request
This commit is contained in:
Elio Bischof
2024-07-25 08:39:10 +02:00
committed by GitHub
parent f34897a8c8
commit 693e27b906
4 changed files with 87 additions and 94 deletions

View File

@@ -11,12 +11,11 @@ export function ensureExternalLinksSettingsSet(api: API, tosLink: string, privac
id: body.policy.id,
entity: null,
};
if (
body.policy &&
body.policy.tosLink === tosLink &&
body.policy.privacyLink === privacyPolicyLink &&
body.policy.docsLink === docsLink
(body.policy.tosLink || '') === tosLink &&
(body.policy.privacyLink || '') === privacyPolicyLink &&
(body.policy.docsLink || '') === docsLink
) {
return { ...result, entity: body.policy };
}