Fix functional user requirements in whitelist mode (#14093)

Fixes #14092
This commit is contained in:
ThibG
2020-06-19 19:18:47 +02:00
committed by GitHub
parent b1d492f30a
commit ac8a788370
9 changed files with 9 additions and 9 deletions

View File

@ -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