FIX: downcase developer emails do it matches internal email storage

This commit is contained in:
Sam 2016-05-27 12:18:54 +10:00
parent 8c3a0b44ba
commit bd9bc7918c
2 changed files with 2 additions and 2 deletions

View File

@ -49,6 +49,6 @@ Discourse::Application.configure do
require 'rbtrace' require 'rbtrace'
if emails = GlobalSetting.developer_emails if emails = GlobalSetting.developer_emails
config.developer_emails = emails.split(",").map(&:strip) config.developer_emails = emails.split(",").map(&:downcase).map(&:strip)
end end
end end

View File

@ -60,7 +60,7 @@ Discourse::Application.configure do
# developers have god like rights and may impersonate anyone in the system # developers have god like rights and may impersonate anyone in the system
# normal admins may only impersonate other moderators (not admins) # normal admins may only impersonate other moderators (not admins)
if emails = GlobalSetting.developer_emails if emails = GlobalSetting.developer_emails
config.developer_emails = emails.split(",").map(&:strip) config.developer_emails = emails.split(",").map(&:downcase).map(&:strip)
end end
end end