Added new flags to admin dashboard account search
• Added: - new flags to admin dashboard account search for PRO, investor, donor, verified - moved spam to the flags column instead of next to username • Removed: - IP Address in account list • Updated: - Title for flags in account moderation header
This commit is contained in:
@@ -60,6 +60,14 @@ class AccountFilter
|
||||
Account.where("created_at >= ?", value)
|
||||
when "spam"
|
||||
Account.where(is_flagged_as_spam: true)
|
||||
when "is_pro"
|
||||
Account.where(is_pro: true)
|
||||
when "is_investor"
|
||||
Account.where(is_investor: true)
|
||||
when "is_donor"
|
||||
Account.where(is_donor: true)
|
||||
when "is_verified"
|
||||
Account.where(is_verified: true)
|
||||
else
|
||||
raise "Unknown filter: #{key}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user