mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 16:33:59 +08:00
add IP address in backup log
This commit is contained in:
parent
9cea4dd04c
commit
43e3182a79
|
@ -328,7 +328,8 @@ class StaffActionLogger
|
|||
|
||||
def log_backup_operation(opts={})
|
||||
UserHistory.create(params(opts).merge({
|
||||
action: UserHistory.actions[:backup_operation]
|
||||
action: UserHistory.actions[:backup_operation],
|
||||
ip_address: @admin.ip_address.to_s
|
||||
}))
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user