summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2017-11-07 22:58:09 -0800
committerazul <azul@riseup.net>2017-11-07 22:58:09 -0800
commite7dfe732599df8df4299c60d14f7c1e3e112b27d (patch)
treeb48d01737e18f708b15d178bbe51ea95d8d6e3db /app
parentd717aba320abc5cc2ebf5650cbd52a69a56926b5 (diff)
parentef91e8fe1fb5c1cf8f2f84fd25ef2b115f0ec8c8 (diff)
Merge branch '8800-hand-out-configs-json-without-authentication' into 'master'
feat: allow unauthenticated access to list of configs Closes #8800 See merge request leap/webapp!45
Diffstat (limited to 'app')
-rw-r--r--app/controllers/api/configs_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/api/configs_controller.rb b/app/controllers/api/configs_controller.rb
index 0f9b8a6..2a05bed 100644
--- a/app/controllers/api/configs_controller.rb
+++ b/app/controllers/api/configs_controller.rb
@@ -1,7 +1,9 @@
class Api::ConfigsController < ApiController
include ControllerExtension::JsonFile
- before_filter :require_login, :unless => :anonymous_access_allowed?
+ before_filter :require_login,
+ :unless => :anonymous_access_allowed?,
+ :except => :index
before_filter :sanitize_id, only: :show
def index