Commit f93de3a5 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Fix #3462 - Require authentication for search API (#4155)

This makes it consistent with /api/v1/accounts/search and
previous behaviour has been an oversight.
parent e19eefe2
......@@ -3,6 +3,9 @@
class Api::V1::SearchController < Api::BaseController
before_action -> { doorkeeper_authorize! :read }
before_action :require_user!
respond_to :json
def index
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