From c92497508600d788ce9a2ab4367c01caa2753d3a Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 11 Aug 2017 15:29:07 -0400 Subject: [PATCH] FIX: wizard should only include human admins and system user as the site contact username options --- lib/wizard/builder.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wizard/builder.rb b/lib/wizard/builder.rb index d3ba97ff1f6..417b286a826 100644 --- a/lib/wizard/builder.rb +++ b/lib/wizard/builder.rb @@ -82,7 +82,8 @@ class Wizard username = Discourse.system_user.username if username.blank? contact = step.add_field(id: 'site_contact', type: 'dropdown', value: username) - User.where(admin: true).pluck(:username).each { |c| contact.add_choice(c) } + User.human_users.where(admin: true).pluck(:username).each { |c| contact.add_choice(c) } + contact.add_choice(Discourse.system_user.username) step.on_update do |updater| updater.apply_settings(:contact_email, :contact_url)