diff options
Diffstat (limited to 'lib/api/search.rb')
-rw-r--r-- | lib/api/search.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/search.rb b/lib/api/search.rb index b14fce13f5e..5f78979ec8a 100644 --- a/lib/api/search.rb +++ b/lib/api/search.rb @@ -7,7 +7,8 @@ module API before do authenticate! - check_rate_limit!(:search_rate_limit, scope: [current_user]) + check_rate_limit!(:search_rate_limit, scope: [current_user], + users_allowlist: Gitlab::CurrentSettings.current_application_settings.search_rate_limit_allowlist) end feature_category :global_search @@ -102,7 +103,7 @@ module API end def snippets? - %w(snippet_titles).include?(params[:scope]).to_s + %w[snippet_titles].include?(params[:scope]).to_s end def entity |