diff options
Diffstat (limited to 'lib')
-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 |