Commit 2ea35022 authored by Dmitry Gruzd's avatar Dmitry Gruzd

Fix opensearch for anonymous users

parent 92a06b97
......@@ -9,7 +9,7 @@ class SearchController < ApplicationController
around_action :allow_gitaly_ref_name_caching
before_action :block_anonymous_global_searches
before_action :block_anonymous_global_searches, except: :opensearch
skip_before_action :authenticate_user!
requires_cross_project_access if: -> do
search_term_present = params[:search].present? || params[:term].present?
......
---
title: Fix opensearch for anonymous users
merge_request: 53056
author:
type: fixed
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment