1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Adjustments for email override

This commit is contained in:
David Bomba 2023-04-22 15:18:53 +10:00
parent aea29fe019
commit cceadda985

View File

@ -486,8 +486,13 @@ class NinjaMailerJob implements ShouldQueue
*/
private function preFlightChecksFail(): bool
{
/* Always send regardless */
if($this->override) {
return false;
}
/* If we are migrating data we don't want to fire any emails */
if ($this->company->is_disabled && !$this->override) {
if ($this->company->is_disabled) {
return true;
}