From ba3a399d8899c55f03b5648ed668c9f32f9b8a26 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 27 Jun 2020 20:48:54 -0500 Subject: [Privacy, Transparency] Reduce allowlist mode restrictions; make publishing trusted servers to about page possible. --- app/models/form/admin_settings.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/form') diff --git a/app/models/form/admin_settings.rb b/app/models/form/admin_settings.rb index fcec3e686..e36974519 100644 --- a/app/models/form/admin_settings.rb +++ b/app/models/form/admin_settings.rb @@ -4,6 +4,8 @@ class Form::AdminSettings include ActiveModel::Model KEYS = %i( + show_domain_allows + site_contact_username site_contact_email site_title @@ -76,6 +78,8 @@ class Form::AdminSettings attr_accessor(*KEYS) + validates :show_domain_allows, inclusion: { in: %w(disabled users all) } + validates :site_short_description, :site_description, html: { wrap_with: :p } validates :site_extended_description, :site_terms, :closed_registrations_message, html: true validates :registrations_mode, inclusion: { in: %w(open approved none) } -- cgit