FEATURE: Ability to clear a user's penalty history

You can do this manually if you want to allow them to reach TL3 without
their penalty history counting against them.
This commit is contained in:
Robin Ward
2018-05-25 11:45:42 -04:00
parent c658fb6e31
commit 4195c7c9ea
7 changed files with 120 additions and 0 deletions

View File

@ -76,6 +76,10 @@ class UserHistory < ActiveRecord::Base
create_badge: 57,
change_badge: 58,
delete_badge: 59,
removed_silence_user: 60,
removed_suspend_user: 61,
removed_unsilence_user: 62,
removed_unsuspend_user: 63,
)
end
@ -90,6 +94,8 @@ class UserHistory < ActiveRecord::Base
:change_site_text,
:suspend_user,
:unsuspend_user,
:removed_suspend_user,
:removed_unsuspend_user,
:grant_badge,
:revoke_badge,
:check_email,
@ -106,6 +112,8 @@ class UserHistory < ActiveRecord::Base
:create_category,
:silence_user,
:unsilence_user,
:removed_silence_user,
:removed_unsilence_user,
:grant_admin,
:revoke_admin,
:grant_moderation,