mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
show 'revoke_email' in staff action logs
This commit is contained in:
parent
aa3152530c
commit
ca1a532cf5
3 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue