mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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={})
|
def log_backup_operation(opts={})
|
||||||
UserHistory.create(params(opts).merge({
|
UserHistory.create(params(opts).merge({
|
||||||
action: UserHistory.actions[:backup_operation]
|
action: UserHistory.actions[:backup_operation],
|
||||||
|
ip_address: @admin.ip_address.to_s
|
||||||
}))
|
}))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user