Skip to content
Snippets Groups Projects
Unverified Commit 678fc4d2 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix privacy policy being empty if custom setting exists but is empty (#19318)

parent d4b0aa74
No related branches found
Tags v2.3.2rc5
No related merge requests found
......@@ -68,7 +68,7 @@ class PrivacyPolicy < ActiveModelSerializers::Model
def self.current
custom = Setting.find_by(var: 'site_terms')
if custom
if custom&.value.present?
new(text: custom.value, updated_at: custom.updated_at)
else
new(text: DEFAULT_PRIVACY_POLICY, updated_at: DEFAULT_UPDATED_AT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment