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:
parent
aea29fe019
commit
cceadda985
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user