Allow searching users by IP subnet

This commit is contained in:
Tom Hughes 2025-02-15 14:36:02 +00:00
parent 4ea868ace7
commit e91f4d82ea

View file

@ -17,7 +17,7 @@ module Users
users = User.all
users = users.where(:status => @params[:status]) if @params[:status].present?
users = users.where(:creation_address => @params[:ip]) if @params[:ip].present?
users = users.where("creation_address <<= ?", @params[:ip]) if @params[:ip].present?
@users_count = users.limit(501).count
@users_count = I18n.t("count.at_least_pattern", :count => 500) if @users_count > 500