Add is_banned to user search params

This commit is contained in:
Type-kun
2016-09-18 00:57:25 +05:00
committed by r888888888
parent 2e4385b6cd
commit e7586f4e4a

View File

@@ -762,7 +762,7 @@ class User < ActiveRecord::Base
bitprefs_include = nil
bitprefs_exclude = nil
[:can_approve_posts, :can_upload_free, :is_super_voter].each do |x|
[:can_approve_posts, :can_upload_free, :is_super_voter, :is_banned].each do |x|
if params[x].present?
attr_idx = BOOLEAN_ATTRIBUTES.index(x.to_s)
if params[x] == "true"