Remove broken link to Terms of Service when none are defined (#33699)
This commit is contained in:
parent
ffaf458f99
commit
4b4de02fee
2 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,7 @@
|
|||
.fields-group
|
||||
= f.input :agreement,
|
||||
as: :boolean,
|
||||
label: t('auth.user_agreement_html', privacy_policy_path: privacy_policy_path, terms_of_service_path: terms_of_service_path),
|
||||
label: TermsOfService.live.exists? ? t('auth.user_agreement_html', privacy_policy_path: privacy_policy_path, terms_of_service_path: terms_of_service_path) : t('auth.user_privacy_agreement_html', privacy_policy_path: privacy_policy_path),
|
||||
required: false,
|
||||
wrapper: :with_label
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue