automatically make developers admins on account creation, this solves the user #1 problem

you can simply set the DEVELOPER_EMAILS to a comma delimited list and the users will be auto admined
This commit is contained in:
Sam
2013-11-02 10:25:43 +11:00
parent a65a063a96
commit 8ff35d4b10
2 changed files with 13 additions and 1 deletions

View File

@@ -85,6 +85,8 @@ Discourse::Application.configure do
# a comma delimited list of emails your devs have
# developers have god like rights and may impersonate anyone in the system
# normal admins may only impersonate other moderators (not admins)
config.developer_emails = []
if emails = ENV["DEVELOPER_EMAILS"]
config.developer_emails = emails.split(",")
end
end