FEATURE: log impersonations

This commit is contained in:
Régis Hanol
2014-11-06 10:58:47 +01:00
parent 246f77c98d
commit bb2d538194
5 changed files with 22 additions and 7 deletions

View File

@ -32,7 +32,8 @@ class UserHistory < ActiveRecord::Base
:auto_trust_level_change,
:check_email,
:delete_post,
:delete_topic)
:delete_topic,
:impersonate)
end
# Staff actions is a subset of all actions, used to audit actions taken by staff users.
@ -48,7 +49,8 @@ class UserHistory < ActiveRecord::Base
:revoke_badge,
:check_email,
:delete_post,
:delete_topic]
:delete_topic,
:impersonate]
end
def self.staff_action_ids