summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2019-03-15 07:50:36 +0000
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2019-03-15 21:03:49 +0100
commit27ac48c394780df923eeb94f3a7f47f6a5f4c649 (patch)
tree71dcceef65e36db616efe00e887ece0fa17f8c26 /lib/api
parentfcf90d051ba2c0e57b3df65711d4ed6b846cfb8e (diff)
downloadgitlab-ce-27ac48c394780df923eeb94f3a7f47f6a5f4c649.tar.gz
Apply suggestion to lib/api/search.rb
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/search.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/search.rb b/lib/api/search.rb
index de3ed3d4540..60095300ea1 100644
--- a/lib/api/search.rb
+++ b/lib/api/search.rb
@@ -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