diff options
author | Azul <azul@riseup.net> | 2017-09-11 14:55:14 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-09-11 14:55:14 +0200 |
commit | ef91e8fe1fb5c1cf8f2f84fd25ef2b115f0ec8c8 (patch) | |
tree | b567a85624fa924a7ee962a07cad89987b804d6b /app/controllers | |
parent | 35b710c968d6e71e4d4210dbc2e00abc6f14f513 (diff) |
feat: allow unauthenticated access to list of configs
This should simplify client code significantly according to
platform#8849
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/configs_controller.rb | 4 |
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 |