From bd9bc7918ccf29820415a9c1caa809e797fa6bcc Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 27 May 2016 12:18:54 +1000 Subject: [PATCH] FIX: downcase developer emails do it matches internal email storage --- config/environments/development.rb | 2 +- config/environments/production.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index ee06ba01b4f..7079245f7dc 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -49,6 +49,6 @@ Discourse::Application.configure do require 'rbtrace' if emails = GlobalSetting.developer_emails - config.developer_emails = emails.split(",").map(&:strip) + config.developer_emails = emails.split(",").map(&:downcase).map(&:strip) end end diff --git a/config/environments/production.rb b/config/environments/production.rb index 35c21bf226b..f73b6e2dc9b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -60,7 +60,7 @@ Discourse::Application.configure do # developers have god like rights and may impersonate anyone in the system # normal admins may only impersonate other moderators (not admins) if emails = GlobalSetting.developer_emails - config.developer_emails = emails.split(",").map(&:strip) + config.developer_emails = emails.split(",").map(&:downcase).map(&:strip) end end