downcase usernames from the admins section in the AppConfig
This commit is contained in:
parent
ef58c5f13d
commit
b21ea3c85a
1 changed files with 6 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ class AppConfig
|
||||||
generate_pod_uri
|
generate_pod_uri
|
||||||
normalize_pod_url
|
normalize_pod_url
|
||||||
check_pod_uri
|
check_pod_uri
|
||||||
|
downcase_admins
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.load_config_for_environment(env)
|
def self.load_config_for_environment(env)
|
||||||
|
|
@ -60,6 +61,11 @@ class AppConfig
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
def self.downcase_admins
|
||||||
|
self.config_vars[:admins].collect! {|admin| admin.downcase}
|
||||||
|
end
|
||||||
|
|
||||||
def self.load_config_yaml filename
|
def self.load_config_yaml filename
|
||||||
YAML.load(File.read(filename))
|
YAML.load(File.read(filename))
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue