diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2019-03-15 07:50:36 +0000 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2019-03-15 21:03:49 +0100 |
commit | 27ac48c394780df923eeb94f3a7f47f6a5f4c649 (patch) | |
tree | 71dcceef65e36db616efe00e887ece0fa17f8c26 /lib/api | |
parent | fcf90d051ba2c0e57b3df65711d4ed6b846cfb8e (diff) | |
download | gitlab-ce-27ac48c394780df923eeb94f3a7f47f6a5f4c649.tar.gz |
Apply suggestion to lib/api/search.rb
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/search.rb | 2 |
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 |