mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
FIX: strip leading/trailing spaces from developer emails
This commit is contained in:
parent
fe6e4d7da1
commit
b7e8bcda07
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ Discourse::Application.configure do
|
|||
require 'rbtrace'
|
||||
|
||||
if emails = GlobalSetting.developer_emails
|
||||
config.developer_emails = emails.split(",")
|
||||
config.developer_emails = emails.split(",").map(&:strip!)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -61,7 +61,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(",")
|
||||
config.developer_emails = emails.split(",").map(&:strip!)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue