Show error notice when email is sent from unauthorized email

[MAILPOET-1787]
This commit is contained in:
Ján Mikláš
2019-02-19 16:45:47 +01:00
committed by M. Shull
parent 79bd178123
commit f5feb032fe
8 changed files with 56 additions and 10 deletions

View File

@ -391,7 +391,11 @@ const StatisticsMixin = {
const MailerMixin = {
checkMailerStatus: function checkMailerStatus(state) {
if (state.meta.mta_log.error && state.meta.mta_log.status === 'paused') {
if (
state.meta.mta_log.error
&& state.meta.mta_log.status === 'paused'
&& state.meta.mta_log.error.operation !== 'authorization'
) {
const errorType = MailerMixin.getMailerErrorType(state);
MailPoet.Notice[errorType](
'',