diff options
author | ThibG <thib@sitedethib.com> | 2020-06-19 19:18:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 19:18:47 +0200 |
commit | ac8a788370012656cde08b2aea2bd927f0748422 (patch) | |
tree | fbddb386e3d9260d520767ba50da290ed0f370b2 /app/controllers/api | |
parent | b1d492f30a584a9e204ac1345e6508ed4acb44bd (diff) |
Fix functional user requirements in whitelist mode (#14093)
Fixes #14092
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/base_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index 153ade253..045e7dd26 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -7,7 +7,7 @@ class Api::BaseController < ApplicationController include RateLimitHeaders skip_before_action :store_current_location - skip_before_action :require_functional! + skip_before_action :require_functional!, unless: :whitelist_mode? before_action :require_authenticated_user!, if: :disallow_unauthenticated_api_access? before_action :set_cache_headers |