2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-12 21:10:47 +08:00

FEATURE: Log username changes by staff

Also fix the tests for changing username
This commit is contained in:
riking 2015-01-16 14:30:46 -08:00
parent 18215f90d0
commit 1ab0d6bd82
6 changed files with 59 additions and 10 deletions

View file

@ -34,7 +34,8 @@ class UserHistory < ActiveRecord::Base
:delete_post,
:delete_topic,
:impersonate,
:roll_up)
:roll_up,
:change_username)
end

# Staff actions is a subset of all actions, used to audit actions taken by staff users.
@ -52,7 +53,8 @@ class UserHistory < ActiveRecord::Base
:delete_post,
:delete_topic,
:impersonate,
:roll_up]
:roll_up,
:change_username]
end

def self.staff_action_ids