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 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 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; return true;
} }