mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04:00
Trust level change logs the target_user_id
This commit is contained in:
parent
b0848db6de
commit
949b2068a5
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ class StaffActionLogger
|
|||
StaffActionLog.create!(
|
||||
action: StaffActionLog.actions[:change_trust_level],
|
||||
staff_user_id: @admin.id,
|
||||
details: [:id, :username, :name, :created_at, :trust_level, :last_seen_at, :last_emailed_at].map { |x| "#{x}: #{user.send(x)}" }.join(', ') + "new trust level: #{new_trust_level}"
|
||||
target_user_id: user.id,
|
||||
details: [:id, :username, :name, :created_at, :trust_level, :last_seen_at, :last_emailed_at].map { |x| "#{x}: #{user.send(x)}" }.join(', ') + ", new trust level: #{new_trust_level}"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue