未验证 提交 27ac48c3 编写于 作者: A Alexis Reigel 提交者: Alexis Reigel

Apply suggestion to lib/api/search.rb

上级 fcf90d05
......@@ -54,7 +54,7 @@ module API
end
def check_users_search_allowed!
if Feature.disabled?(:users_search, default_enabled: true) && params[:scope].to_sym == :users
if params[:scope].to_sym == :users && Feature.disabled?(:users_search, default_enabled: true)
render_api_error!({ error: _("Scope not supported with disabled 'users_search' feature!") }, 400)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册