Prevents request of all users

pull/853/head
Hagen Schink 11 years ago
parent 99125647f6
commit c4bb6bb330
  1. 3
      app/controllers/api/v2/users_controller.rb

@ -7,7 +7,8 @@ module Api
skip_filter :require_admin, :only => :index skip_filter :require_admin, :only => :index
def index def index
@users = UserSearchService.new(params).search @users = []
@users = UserSearchService.new(params).search if params[:ids] and not params[:ids].empty?
respond_to do |format| respond_to do |format|
format.api format.api

Loading…
Cancel
Save