fixes #2542: User promotion report shows wrong users

This commit is contained in:
r888888888
2015-11-02 12:45:48 -08:00
parent 286c71b342
commit 4cf7effc4a

View File

@@ -66,7 +66,7 @@ module Reports
end
def users
::User.where("users.bit_prefs & ? > 0 and users.post_upload_count >= 250", ::User.flag_value_for("can_upload_free")).order("created_at desc").map {|x| Reports::UserPromotions::User.new(x)}
::User.where("users.bit_prefs & ? = 0 and users.post_upload_count >= 250", ::User.flag_value_for("can_upload_free")).order("created_at desc").map {|x| Reports::UserPromotions::User.new(x)}
end
end
end