log when staff blocks/unblocks someone

This commit is contained in:
Neil Lalonde
2016-01-14 15:05:11 -05:00
parent 12790d8dcc
commit b8299a2710
4 changed files with 26 additions and 2 deletions

View File

@ -44,7 +44,9 @@ class UserHistory < ActiveRecord::Base
change_category_settings: 26,
delete_category: 27,
create_category: 28,
change_site_text: 29)
change_site_text: 29,
block_user: 30,
unblock_user: 31)
end
# Staff actions is a subset of all actions, used to audit actions taken by staff users.
@ -70,7 +72,9 @@ class UserHistory < ActiveRecord::Base
:reviewed_post,
:change_category_settings,
:delete_category,
:create_category]
:create_category,
:block_user,
:unblock_user]
end
def self.staff_action_ids