Add batch suspend for accounts in admin UI (#17009)
This commit is contained in:
parent
2e2ea6bb6b
commit
0fb9536d38
26 changed files with 312 additions and 278 deletions
|
@ -17,7 +17,7 @@ class Admin::ActionLog < ApplicationRecord
|
|||
serialize :recorded_changes
|
||||
|
||||
belongs_to :account
|
||||
belongs_to :target, polymorphic: true
|
||||
belongs_to :target, polymorphic: true, optional: true
|
||||
|
||||
default_scope -> { order('id desc') }
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ class Admin::ActionLogFilter
|
|||
assigned_to_self_report: { target_type: 'Report', action: 'assigned_to_self' }.freeze,
|
||||
change_email_user: { target_type: 'User', action: 'change_email' }.freeze,
|
||||
confirm_user: { target_type: 'User', action: 'confirm' }.freeze,
|
||||
approve_user: { target_type: 'User', action: 'approve' }.freeze,
|
||||
reject_user: { target_type: 'User', action: 'reject' }.freeze,
|
||||
create_account_warning: { target_type: 'AccountWarning', action: 'create' }.freeze,
|
||||
create_announcement: { target_type: 'Announcement', action: 'create' }.freeze,
|
||||
create_custom_emoji: { target_type: 'CustomEmoji', action: 'create' }.freeze,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue