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, :revoke_admin,
:grant_moderation, :grant_moderation,
:revoke_moderation, :revoke_moderation,
:backup_operation] :backup_operation,
:revoke_email]
end end
def self.staff_action_ids def self.staff_action_ids

View file

@ -338,7 +338,7 @@ class StaffActionLogger
UserHistory.create(params(opts).merge({ UserHistory.create(params(opts).merge({
action: UserHistory.actions[:revoke_email], action: UserHistory.actions[:revoke_email],
target_user_id: user.id, 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 end

View file

@ -2450,6 +2450,7 @@ en:
backup_operation: "backup operation" backup_operation: "backup operation"
deleted_tag: "deleted tag" deleted_tag: "deleted tag"
renamed_tag: "renamed tag" renamed_tag: "renamed tag"
revoke_email: "revoke email"
screened_emails: screened_emails:
title: "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." 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."