users: allow searching for banned users.

This commit is contained in:
evazion
2020-07-13 10:45:51 -05:00
parent 9885ae61fb
commit b1ccc44c91

View File

@@ -527,7 +527,7 @@ class User < ApplicationRecord
q = q.where("level <= ?", params[:max_level].to_i)
end
%w[can_approve_posts can_upload_free].each do |flag|
%w[can_approve_posts can_upload_free is_banned].each do |flag|
if params[flag].to_s.truthy?
q = q.bit_prefs_match(flag, true)
elsif params[flag].to_s.falsy?