summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-09-04 12:23:02 -0700
committerelijah <elijah@riseup.net>2014-09-04 12:23:02 -0700
commite256a3d596618ff1bcebb894a3d9251cc4e5b12c (patch)
tree9988388f2731cf9358237e6b67cae56d01d8d26d
parentccce1c82b275dd048682ede77f39cc69753dc457 (diff)
fixed typo on configs_controller.rb
-rw-r--r--app/controllers/v1/configs_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/v1/configs_controller.rb b/app/controllers/v1/configs_controller.rb
index 9c01605..0af21d2 100644
--- a/app/controllers/v1/configs_controller.rb
+++ b/app/controllers/v1/configs_controller.rb
@@ -32,7 +32,7 @@ class V1::ConfigsController < ApiController
def sanitize_filename
@filename = params[:id].downcase
@filename += '.json' unless @filename.ends_with?('.json')
- access_denied unless SERVICES.values.include? name
+ access_denied unless SERVICES.values.include? @filename
@filename = Rails.root.join('public', '1', 'config', @filename)
end
end