Skip to content
Snippets Groups Projects
Commit f93de3a5 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
class Api::V1::SearchController < Api::BaseController class Api::V1::SearchController < Api::BaseController
RESULTS_LIMIT = 5 RESULTS_LIMIT = 5
before_action -> { doorkeeper_authorize! :read }
before_action :require_user!
respond_to :json respond_to :json
def index def index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment