show 'revoke_email' in staff action logs

This commit is contained in:
Régis Hanol 2016-06-06 22:58:09 +02:00
parent aa3152530c
commit ca1a532cf5
3 changed files with 4 additions and 2 deletions

View File

@ -87,7 +87,8 @@ class UserHistory < ActiveRecord::Base
:revoke_admin,
:grant_moderation,
:revoke_moderation,
:backup_operation]
:backup_operation,
:revoke_email]
end
def self.staff_action_ids

View File

@ -338,7 +338,7 @@ class StaffActionLogger
UserHistory.create(params(opts).merge({
action: UserHistory.actions[:revoke_email],
target_user_id: user.id,
details: user.email
details: "Won't be sending emails to '#{user.email}' until #{user.user_stat.reset_bounce_score_after}"
}))
end

View File

@ -2450,6 +2450,7 @@ en:
backup_operation: "backup operation"
deleted_tag: "deleted tag"
renamed_tag: "renamed tag"
revoke_email: "revoke email"
screened_emails:
title: "Screened Emails"
description: "When someone tries to create a new account, the following email addresses will be checked and the registration will be blocked, or some other action performed."