IDEMPIERE-5927 EMail Workflow fails when sending email using a System mail account (#2103)

This commit is contained in:
Carlos Ruiz 2023-11-10 21:19:23 +01:00 committed by GitHub
parent aecc0e3e0a
commit 301ee9348b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -181,7 +181,10 @@ public class MAuthorizationAccount extends X_AD_AuthorizationAccount {
setAccessToken(response.getAccessToken());
setAccessTokenTimestamp(ts);
setExpireInSeconds(new BigDecimal(response.getExpiresInSeconds()));
saveEx();
if (getAD_Client_ID() == 0)
saveCrossTenantSafeEx(); // sending a tenant email from a system account is possible
else
saveEx();
}
}